/* 
    Auth pages styling with dark burgundy/purple theme
    ChatGPT used as assistant in styling auth pages
    Claude used to apply new color scheme.
*/

.auth {
    background: linear-gradient(180deg, rgba(6,4,7,.9), rgba(6,4,7,.95));
    color: #9BB2B9;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
}

.auth { 
    background-color: #060407 !important; 
}

.auth-wrap {
    width: 100%;
    max-width: 700px;
    margin: 60px auto;
    padding: 30px;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: #221932;
    border: 1px solid #541533;
    border-radius: 14px;
    padding: 32px 26px;
    box-shadow: 0 8px 30px rgba(0,0,0,.5);
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
    color: #9BB2B9;
}

.auth-card p.welcome-text {
    margin: 0 0 18px;
    color: #775E88;
}

.form {
    display: grid;
    gap: 14px;
}

.label {
    font-size: .95rem;
    color: #9BB2B9;
    margin-bottom: 6px;
    font-weight: 500;
}

.input {
    width: 100%;
    background: #060407;
    color: #9BB2B9;
    border: 2px solid #541533;
    border-radius: 10px;
    padding: 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    font-family: inherit;
}

.input::placeholder {
    color: #775E88;
}

.input:focus {
    border-color: #722548;
    box-shadow: 0 0 0 3px rgba(114, 37, 72, 0.25);
}

.btn {
    display: inline-flex; 
    justify-content: center; 
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    transition: transform .05s ease, box-shadow .15s ease, background .15s ease; 
}

.btn-primary {
    background: linear-gradient(180deg, #722548, #541533);
    color: #9BB2B9;
    box-shadow: 0 8px 18px rgba(114,37,72,.4);
}

.btn-primary:hover { 
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(114,37,72,.5);
}

.btn-google {
    background: #221932;
    color: #9BB2B9;
    border: 2px solid #541533;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #541533;
    transform: translateY(-1px);
}

.btn-google img { 
    width: 18px; 
    height: 18px; 
}

.separator {
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin: 10px 0 6px; 
    color: #775E88;
}

.separator:before, 
.separator:after { 
    content: ""; 
    height: 1px; 
    background: rgba(84, 21, 51, 0.5); 
    flex: 1; 
}

.link {
    color: #988BB9; 
    text-decoration: none;
    transition: color 0.2s ease;
}

a.link:hover { 
    text-decoration: underline;
    color: #775E88;
}

.note {
    margin-top: 10px; 
    color: #775E88; 
    font-size: .9rem;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 10px;
    margin: 10px 0 16px;
}

.avatar-option {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 50%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.avatar-option img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid transparent;
    object-fit: cover;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.avatar-option:hover img {
    transform: scale(1.05);
    border-color: #775E88;
}

.avatar-option input:checked + img {
    border-color: #722548;
    box-shadow: 0 0 0 3px rgba(114, 37, 72, 0.4);
    transform: scale(1.08);
}

/* Error and success messages */
.error-message {
    background: rgba(114, 37, 72, 0.2);
    border: 1px solid #722548;
    color: #988BB9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.success-message {
    background: rgba(119, 94, 136, 0.2);
    border: 1px solid #775E88;
    color: #9BB2B9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

/* Loading state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .auth-wrap {
        margin: 30px auto;
        padding: 20px;
    }
    
    .auth-card {
        padding: 24px 20px;
    }
    
    .auth-card h1 {
        font-size: 1.5rem;
    }
    
    .avatar-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    }
    
    .avatar-option img {
        width: 60px;
        height: 60px;
    }
}