/* Login Page Styles - GyanSansar Time Tracker */

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #F9FAFB;
    color: #1F2937;
    line-height: 1.5;
    min-height: 100vh;
}

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.login-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

/* Logo */
.login-logo {
    text-align: center;
    margin-bottom: 24px;
}

.login-logo img {
    max-height: 64px;
    width: auto;
}

/* Title */
.login-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: #1F2937;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
    margin-bottom: 32px;
}

/* Form */
.login-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-step[hidden] {
    display: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: #1F2937;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

/* OTP input styling */
#otp {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5em;
    padding: 12px 8px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: #2563EB;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    background-color: #1D4ED8;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-link {
    background: none;
    border: none;
    color: #2563EB;
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    padding: 8px;
    text-align: center;
}

.btn-link:hover:not(:disabled) {
    text-decoration: underline;
}

.btn-link:disabled {
    color: #9CA3AF;
    cursor: not-allowed;
}

/* Messages */
.message {
    font-size: 0.875rem;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
}

.message[hidden] {
    display: none;
}

.message-error {
    color: #DC2626;
    background-color: #FEF2F2;
    border: 1px solid #FECACA;
}

.message-success {
    color: #16A34A;
    background-color: #F0FDF4;
    border: 1px solid #BBF7D0;
}

/* OTP info text */
.otp-info {
    font-size: 0.875rem;
    color: #6B7280;
    text-align: center;
}

.otp-info span {
    font-weight: 600;
    color: #1F2937;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        padding: 24px 20px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    }

    .login-title {
        font-size: 1.25rem;
    }

    #otp {
        font-size: 1.25rem;
        letter-spacing: 0.4em;
    }
}

@media (max-width: 320px) {
    .login-card {
        padding: 20px 16px;
    }

    .login-title {
        font-size: 1.125rem;
    }

    #otp {
        font-size: 1.125rem;
        letter-spacing: 0.3em;
    }
}
