﻿/* =========================================================
   PERFIL
   ========================================================= */

.profile-form {
    width: 70%;
    max-width: 720px;
    margin: 0 auto;
}

.profile-form-section {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: #11141a;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.form-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.form-section-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

    .form-section-icon i {
        font-size: 20px;
    }

.form-section-title h3 {
    margin: 0;
    color: #ffffff;
    font-size: 20px;
    font-weight: 650;
}

.form-section-title p {
    margin: 4px 0 0;
    color: #777e89;
    font-size: 13px;
}


/* =========================================================
   FOTO
   ========================================================= */

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 38px;
}

.profile-photo {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 14px;
    overflow: visible;
}

    .profile-photo > img,
    .profile-photo-placeholder {
        width: 120px;
        height: 120px;
        border-radius: 50%;
    }

    .profile-photo > img {
        display: block;
        object-fit: cover;
        border: 3px solid rgba(255, 255, 255, 0.1);
    }

.profile-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1b1f27;
    color: #59616d;
    border: 3px solid rgba(255, 255, 255, 0.08);
}

    .profile-photo-placeholder i {
        font-size: 48px;
    }

.photo-file-input {
    display: none;
}

.change-photo-button {
    position: absolute;
    right: 0;
    bottom: 2px;
    z-index: 5;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #11141a;
    border-radius: 50%;
    background: #ffffff;
    color: #11141a;
    cursor: pointer;
    transition: transform 0.2s ease;
}

    .change-photo-button:hover {
        transform: scale(1.08);
    }

.photo-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

    .photo-info strong {
        color: #e9ebef;
        font-size: 14px;
    }

    .photo-info span {
        color: #686f7a;
        font-size: 11px;
    }

.upload-photo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #d9dce2;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .upload-photo-link:hover {
        color: #ffffff;
    }

.photo-error {
    margin-top: 10px;
    color: #ff647c;
    font-size: 12px;
}


/* =========================================================
   CAMPOS - UM EMBAIXO DO OUTRO
   ========================================================= */

.profile-fields {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-field {
    width: 100%;
    display: flex;
    flex-direction: column;
}

    .profile-field > label {
        margin-bottom: 8px;
        color: #b9bec7;
        font-size: 12px;
        font-weight: 600;
    }

.input-with-icon {
    position: relative;
    width: 100%;
}

    .input-with-icon > i {
        position: absolute;
        top: 50%;
        left: 16px;
        z-index: 2;
        transform: translateY(-50%);
        color: #656c77;
        font-size: 15px;
        pointer-events: none;
    }

.profile-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px 0 45px;
    border: 1px solid #292e37;
    border-radius: 10px;
    outline: none;
    background: #0c0f14;
    color: #eceef2;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .profile-input::placeholder {
        color: #505661;
    }

    .profile-input:focus {
        border-color: #6f7784;
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
        background: #0c0f14;
        color: #ffffff;
    }

.field-validation {
    display: block;
    margin-top: 6px;
    color: #ff647c;
    font-size: 11px;
}

.profile-validation-summary {
    margin-bottom: 20px;
    color: #ff647c;
    font-size: 12px;
}


/* =========================================================
   AÇÕES
   ========================================================= */

.profile-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-cancel-button,
.profile-save-button {
    min-height: 44px;
    padding: 0 20px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.profile-cancel-button {
    border: 1px solid #303640;
    background: transparent;
    color: #aeb4bd;
}

    .profile-cancel-button:hover {
        border-color: #4a515d;
        background: rgba(255, 255, 255, 0.04);
        color: #ffffff;
    }

.profile-save-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: none;
    background: #ffffff;
    color: #111318;
}

    .profile-save-button:hover:not(:disabled) {
        transform: translateY(-1px);
        background: #e8e9eb;
    }

    .profile-save-button:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }


/* =========================================================
   SPINNER
   ========================================================= */

.button-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 0, 0, 0.25);
    border-top-color: #111318;
    border-radius: 50%;
    animation: profileSpin 0.7s linear infinite;
}

@keyframes profileSpin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .profile-form {
        max-width: 100%;
    }

    .profile-form-section {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .form-section-title {
        margin-bottom: 26px;
    }

    .profile-photo {
        width: 105px;
        height: 105px;
    }

        .profile-photo > img,
        .profile-photo-placeholder {
            width: 105px;
            height: 105px;
        }

    .profile-fields {
        gap: 18px;
    }

    .profile-form-actions {
        flex-direction: column-reverse;
    }

    .profile-cancel-button,
    .profile-save-button {
        width: 100%;
    }
}
