/* ============================================================
   AI Studio Pro - Auth & Profile Styles
   ============================================================ */

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}

.auth-body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",sans-serif;
    background:#050508;
    color:#c8c8d0;
    min-height:100vh;
    line-height:1.6;
    -webkit-font-smoothing:antialiased;
}

/* ============================================================
   AUTH PAGES (Login, Register, Forgot, Reset)
   ============================================================ */
.auth-container{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}

.auth-card{
    width:100%;
    max-width:420px;
    background:rgba(12,12,24,.8);
    border:1px solid rgba(255,255,255,.06);
    border-radius:20px;
    padding:40px 36px;
    backdrop-filter:blur(20px);
}

.auth-logo{
    display:block;
    text-align:center;
    font-size:1.2rem;
    font-weight:800;
    color:#fff;
    text-decoration:none;
    margin-bottom:32px;
    letter-spacing:-.02em;
}

.auth-title{
    font-size:1.5rem;
    font-weight:700;
    color:#fff;
    text-align:center;
    margin-bottom:8px;
}

.auth-subtitle{
    font-size:.9rem;
    color:#7070a0;
    text-align:center;
    margin-bottom:28px;
}

/* Alerts */
.auth-alert{
    padding:12px 16px;
    border-radius:10px;
    font-size:.85rem;
    margin-bottom:20px;
}

.auth-alert--error{
    background:rgba(244,67,54,.08);
    border:1px solid rgba(244,67,54,.3);
    color:#ef9a9a;
}

.auth-alert--success{
    background:rgba(76,175,80,.08);
    border:1px solid rgba(76,175,80,.3);
    color:#a5d6a7;
}

/* Form */
.auth-form{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.form-field label{
    display:block;
    font-size:.82rem;
    font-weight:500;
    color:#8888a0;
    margin-bottom:6px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="file"]{
    width:100%;
    padding:12px 16px;
    background:rgba(5,5,8,.8);
    border:1px solid rgba(255,255,255,.08);
    border-radius:10px;
    color:#fff;
    font-size:.92rem;
    transition:border-color .2s;
}

.form-field input:focus{
    outline:none;
    border-color:#6c63ff;
    box-shadow:0 0 0 3px rgba(108,99,255,.1);
}

.form-field input::placeholder{color:#4a4a6a}

.form-field small{
    display:block;
    margin-top:4px;
    font-size:.75rem;
    color:#555;
}

.form-field--row{
    display:flex;
    justify-content:flex-end;
}

/* Checkbox */
.form-field--checkbox{margin-top:4px}

.checkbox-label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:.84rem;
    color:#8888a0;
    cursor:pointer;
}

.checkbox-label input[type="checkbox"]{
    width:18px;
    height:18px;
    margin-top:2px;
    accent-color:#6c63ff;
    cursor:pointer;
    flex-shrink:0;
}

/* Submit button */
.btn-auth{
    width:100%;
    padding:14px;
    background:#6c63ff;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:.95rem;
    font-weight:600;
    cursor:pointer;
    transition:all .2s;
    box-shadow:0 4px 16px rgba(108,99,255,.2);
    margin-top:4px;
}

.btn-auth:hover{
    background:#5a52e0;
    transform:translateY(-1px);
    box-shadow:0 6px 24px rgba(108,99,255,.3);
}

.btn-auth--small{
    width:auto;
    padding:10px 20px;
    font-size:.85rem;
}

/* Links */
.auth-link{
    color:#6c63ff;
    text-decoration:none;
    font-weight:500;
    transition:opacity .2s;
}
.auth-link:hover{opacity:.8}

.auth-footer{
    margin-top:24px;
    text-align:center;
    font-size:.88rem;
    color:#7070a0;
}

/* ============================================================
   PROFILE PAGE
   ============================================================ */
.profile-container{
    min-height:100vh;
    background:#050508;
}

.profile-header{
    padding:16px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-bottom:1px solid rgba(255,255,255,.04);
    background:rgba(5,5,8,.9);
    backdrop-filter:blur(16px);
    position:sticky;
    top:0;
    z-index:100;
}

.profile-logo{
    font-size:1.1rem;
    font-weight:700;
    color:#fff;
    text-decoration:none;
}

.profile-nav{
    display:flex;
    gap:20px;
    align-items:center;
}

.profile-nav a{
    color:#7070a0;
    font-size:.88rem;
    text-decoration:none;
    transition:color .2s;
}
.profile-nav a:hover{color:#fff}

.profile-logout{color:#f44336 !important}

.profile-content{
    max-width:900px;
    margin:0 auto;
    padding:40px 24px;
}

.profile-title{
    font-size:1.8rem;
    font-weight:700;
    color:#fff;
    margin-bottom:28px;
}

.profile-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.profile-card{
    background:rgba(12,12,24,.8);
    border:1px solid rgba(255,255,255,.06);
    border-radius:16px;
    padding:28px;
}

.profile-card h2{
    font-size:1rem;
    font-weight:600;
    color:#fff;
    margin-bottom:18px;
    padding-bottom:12px;
    border-bottom:1px solid rgba(255,255,255,.06);
}

.profile-card .form-field{margin-bottom:14px}

/* Avatar */
.avatar-section{
    display:flex;
    justify-content:center;
    margin-bottom:16px;
}

.avatar-img{
    width:80px;height:80px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid rgba(108,99,255,.3);
}

.avatar-placeholder{
    width:80px;height:80px;
    border-radius:50%;
    background:linear-gradient(135deg,#6c63ff,#a855f7);
    display:flex;align-items:center;justify-content:center;
    font-size:2rem;font-weight:700;color:#fff;
}

/* Account info */
.account-info{display:flex;flex-direction:column;gap:12px}

.info-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid rgba(255,255,255,.04);
}

.info-row:last-child{border-bottom:none}

.info-label{font-size:.85rem;color:#7070a0}
.info-value{font-size:.9rem;color:#fff;font-weight:500}

.badge-active{color:#4caf50}
.badge-suspended{color:#ff9800}
.badge-banned{color:#f44336}

.input-disabled{
    opacity:.5;
    cursor:not-allowed;
}

/* Responsive */
@media(max-width:768px){
    .profile-grid{grid-template-columns:1fr}
    .auth-card{padding:32px 24px}
}
