/* ===========================================
   ODDSON Login Page - Minimalist Design
   =========================================== */

/* Reset body styling for login page */
body.login-page {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Login Container - Full viewport centered */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

/* Login Box - White box with black border */
.login-box {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 3px solid #000000;
    padding: 48px 40px;
    box-sizing: border-box;
}

/* Brand Name */
.login-brand {
    font-size: 24px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Page Title */
.login-title {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin: 0 0 32px 0;
}

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

/* Label Row - Label and Forgot Link */
.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.form-label-row label {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

.forgot-link {
    font-size: 12px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #000000;
}

/* Input Fields */
.login-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    color: #000000;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
}

.login-input::placeholder {
    color: #999999;
}

.login-input:focus {
    outline: none;
    border-color: #666666;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .login-input {
    padding-right: 48px;
}

/* Password Toggle Button */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #000000;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Error and Success Messages */
.error-messages {
    min-height: 24px;
    margin-bottom: 16px;
}

.error-text {
    color: #dc2626;
    font-size: 13px;
    margin: 4px 0;
}

.success-text {
    color: #059669;
    font-size: 13px;
    margin: 4px 0;
}

/* reCAPTCHA Wrapper */
.recaptcha-wrapper {
    margin-bottom: 24px;
    display: flex;
    justify-content: flex-start;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: inherit;
}

.login-btn:hover {
    background: #333333;
}

.login-btn:active {
    transform: translateY(1px);
}

/* Sign Up Link */
.signup-link {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
    color: #666666;
}

.signup-link a {
    color: #000000;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: #333333;
}

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
        border-width: 2px;
    }

    .login-brand {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .login-title {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .login-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ===========================================
   reCAPTCHA Responsive Adjustments
   =========================================== */

@media (max-width: 380px) {
    .recaptcha-wrapper {
        transform: scale(0.85);
        transform-origin: 0 0;
        margin-bottom: 16px;
    }
}

/* ===========================================
   Dark Mode Support
   =========================================== */

@media (prefers-color-scheme: dark) {
    body.login-page {
        background: #121218;
    }

    .login-box {
        background: #1e1e26;
        border-color: #3d3d4a;
    }

    .login-brand {
        color: #ffffff;
    }

    .login-title {
        color: #b0b0b8;
    }

    .form-group label,
    .form-label-row label {
        color: #b0b0b8;
    }

    .forgot-link {
        color: #8a8a96;
    }

    .forgot-link:hover {
        color: #ffffff;
    }

    .login-input {
        background: #2a2a38;
        border-color: #3d3d4a;
        color: #ffffff;
    }

    .login-input::placeholder {
        color: #6a6a76;
    }

    .login-input:focus {
        border-color: #f5c518;
    }

    .password-toggle {
        color: #8a8a96;
    }

    .password-toggle:hover {
        color: #ffffff;
    }

    .error-text {
        color: #fc8181;
    }

    .success-text {
        color: #68d391;
    }

    .login-btn {
        background: #f5c518;
        color: #1a1a2e;
    }

    .login-btn:hover {
        background: #e6b800;
    }

    .signup-link {
        color: #8a8a96;
    }

    .signup-link a {
        color: #f5c518;
    }

    .signup-link a:hover {
        color: #e6b800;
    }
}
