/* Auth Styles - Super Star Signature */
/* Login & Register Pages */

html {
    font-size: 18px; /* Base font size increased for better readability */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ff4081;
    --primary-dark: #e91e63;
    --primary-light: #fdd7f0;
    --cream: #fff2d0;
    --cyan: #16bcf1;
    --purple: #5f41cd;
    --dark: #333333;
    --white: #ffffff;
    --gray: #666666;
    --light-gray: #f5f7fa;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
}

body {
    font-family: 'Baloo Bhaijaan 2', sans-serif;
    background: linear-gradient(135deg, var(--cream) 0%, var(--primary-light) 50%, var(--cream) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(90deg, #00BCD4 0%, #ffb6d0 100%);
    padding: 30px;
    text-align: center;
}


.auth-header .logo img {
    height: 80px;
    width: auto;
}

.auth-header h1 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.auth-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--dark);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group label i {
    margin-right: 8px;
    color: #03A9F4;
}

.input-group {
    position: relative;
}

.input-group > i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1rem;
    pointer-events: none;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 14px 50px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--dark);
    transition: all 0.3s ease;
    background: var(--white);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 64, 129, 0.1);
}

.input-group input::placeholder {
    color: #aaa;
}

.input-group .toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--gray);
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    z-index: 2;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-group .toggle-password i {
    position: static;
    transform: none;
}

.input-group .toggle-password:hover {
    color: var(--primary);
    background: rgba(255, 64, 129, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn {
    width: 100%;
    padding: 14px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 64, 129, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #eee;
}

.auth-footer p {
    color: var(--gray);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-to-site {
    text-align: center;
    margin-top: 20px;
}

.back-to-site a {
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.9;
}

.back-to-site a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Alert Box for AJAX */
.alert-box {
    padding: 12px 15px;
    border-radius: 10px;
    margin: 0 30px 20px;
    font-size: 0.9rem;
    animation: fadeIn 0.3s ease;
}

.alert-box.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-box.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-box.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-box.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sponsor Info */
.sponsor-info {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

.sponsor-info.valid {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sponsor-info.invalid {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger);
}

/* Optional label */
.optional {
    font-weight: 400;
    color: var(--gray);
    font-size: 0.8rem;
}

/* Member ID Box */
.member-id-box {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 15px 30px;
    animation: fadeIn 0.5s ease;
}

.member-id-box .member-id {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    display: block;
    margin: 10px 0;
}

.member-id-box small {
    opacity: 0.9;
}

/* Button disabled state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Responsive */
@media (max-width: 576px) {
    html {
        font-size: 17px; /* Keep fonts readable on mobile */
    }
    
    body {
        padding: 15px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.3rem;
    }
    
    .auth-body {
        padding: 25px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
