/* Premium Light Mode Auth Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    /* Frosty White */
    --glass-border: rgba(255, 255, 255, 0.5);
    --text-primary: #1a1a1a;
    --text-secondary: #6e6e73;
    --primary-color: #2575fc;
    --primary-gradient: linear-gradient(to right, #6a11cb 0%, #2575fc 100%);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --input-focus: #2575fc;
    --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Soft luxurious shadow */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Header */
header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border-radius: 10px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(37, 117, 252, 0.3);
}

.logo-icon::after {
    content: 'A';
    color: white;
    font-size: 20px;
    font-weight: bold;
}

/* Auth Container */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 80px;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 50px 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--shadow-soft);
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card h2 {
    margin: 0 0 10px 0;
    font-size: 30px;
    text-align: center;
    color: #111;
    font-weight: 800;
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 15px;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #444;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: #111;
    font-size: 15px;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-group input:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(37, 117, 252, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

/* Captcha Styling */
.captcha-container {
    display: flex;
    gap: 12px;
    margin-bottom: 5px;
}

.captcha-box {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* transition: border-color 0.2s; */
}

/* Make image fill */
#captchaImg {
    height: 100%;
    width: auto;
}

.btn-refresh {
    width: 54px;
    height: 54px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: #e9ecef;
    color: #333;
    border-color: #d0d0d0;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    background-image: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.35);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 12px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background: #eff6ff;
    /* Light blue tint */
}

/* Footer Section */
.auth-footer {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 5px;
}

/* Error Message */
#errorMsg,
#msgBox {
    margin-top: 20px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}