/**
 * Copyright (c) Enalean, 2020 - present. All Rights Reserved.
 *
 *  This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

$avatar-size: 100px;

.account-information-container {
    display: flex;
}

.account-information-fields {
    flex: 1 1 auto;
}

.account-information-avatar {
    position: relative;
    width: $avatar-size;
    height: $avatar-size;
    margin: 0 var(--tlp-large-spacing) 0 var(--tlp-medium-spacing);
}

.account-information-avatar-button {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.account-information-avatar-button-icon.tlp-button-icon {
    margin: 0;
}

.account-information-submit {
    padding: var(--tlp-medium-spacing) var(--tlp-medium-spacing) var(--tlp-medium-spacing)
        calc(
            var(--tlp-medium-spacing) + var(--tlp-medium-spacing) + var(--tlp-large-spacing) + #{$avatar-size}
        );
}

.account-information-avatar-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-information-avatar-modal-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 0 var(--tlp-medium-spacing);
}

.account-information-avatar-modal-select-button {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    margin: 0 0 10px;
    overflow: hidden;
    cursor: pointer;
}

.account-information-avatar-modal-select-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
}

.account-information-avatar-modal-preview {
    background: #ffffff;
}
