/* Custom Login Page Styles - Light Minimalist Theme */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

body {
    background: #ffffff !important;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff !important;
    padding: 20px 5px;
    margin: 0;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff !important;
    border-radius: 16px;
    padding: 30px 36px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-top: 5px;
    margin-bottom: 25px;
    transition: box-shadow 0.3s ease;
}

.login-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* Header Styles */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h1 {
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #6b7280;
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

/* Form Styles */
.login-form {
    margin: 0;
}

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

.form-label {
    display: block;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    font-size: 15px;
    transition: all 0.2s ease;
    font-weight: 400;
    min-height: 44px;
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-control:focus {
    outline: none;
    border-color: #000000;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #000000;
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
    transition: opacity 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    opacity: 0.6;
}

.password-toggle:focus {
    outline: none;
}

/* Button Styles */
.btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.btn-login {
    background: #000000 !important;
    color: #ffffff !important;
    margin-top: 28px;
    padding: 16px 24px !important;
    font-size: 16px !important;
    line-height: 1.5;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-login:hover {
    background: #1a1a1a !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
    border-color: #ffffff;
    border-right-color: transparent;
}

.btn-google {
    background: transparent;
    color: #2563eb;
    border: none;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
}

.btn-google:hover {
    opacity: 0.7;
}

.btn-google i {
    font-size: 16px;
    margin-right: 4px;
}

/* Alert Styles */
.alert {
    border-radius: 6px;
    border: none;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert-info {
    background: #eff6ff;
    color: #010205;
    border: 1px solid #bfdbfe;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer p {
    color: #000000;
    font-size: 14px;
    margin: 0;
}

.login-footer a {
    color: #2563eb;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.login-footer a:hover {
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-header p {
        font-size: 13px;
    }
    
    .form-control {
        padding: 10px 14px;
    }
    
    .btn {
        padding: 10px 14px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeIn 0.4s ease;
}

/* Loading State */
.btn-login.loading .btn-text {
    display: none;
}

.btn-login.loading .spinner-border {
    display: inline-block !important;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px;
    background: #f9fafb;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.captcha-container:hover {
    border-color: #9ca3af;
}

.captcha-image {
    height: 50px;
    width: 160px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background: white;
    object-fit: contain;
}

.captcha-refresh {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.captcha-refresh:hover {
    background: #1a1a1a;
    transform: rotate(180deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.captcha-refresh:active {
    transform: scale(0.95) rotate(180deg);
}
