/* Login Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    overflow: hidden;
    font-size: 14.4px;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* Login Container - Right Side */
.login-container {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 405px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -9px 0 36px rgba(0, 0, 0, 0.2);
}

.login-form-wrapper {
    width: 80%;
    max-width: 315px;
}

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

.login-header h1 {
    font-size: 25px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 7px;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
}

.login-header p {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

.form-group label {
    font-size: 13px;
    font-weight: 500;
    color: #000000;
    font-weight: 600;
}

.form-group input {
    padding: 11px 13px;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    outline: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    color: #000000;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus {
    border-color: #00005b;
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(0, 0, 91, 0.2);
}

/* Password Input with Toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 41px;
}

.toggle-password {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #00005b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #109af0;
}

.toggle-password .eye-icon {
    width: 16px;
    height: 16px;
}

/* Error Message */
.error-message {
    padding: 11px;
    background-color: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(9px);
    border: 1px solid rgba(239, 68, 68, 0.5);
    border-radius: 7px;
    color: #ffffff;
    font-size: 13px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Login Button */
.login-button {
    padding: 13px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #00005b 0%, #109af0 100%);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 11px rgba(0, 0, 91, 0.3);
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(16, 154, 240, 0.4);
}

.login-button:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 7px rgba(0, 0, 91, 0.3);
}

.login-button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Auth Link */
.auth-link {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: rgba(0, 0, 0, 0.8);
}

.auth-link a {
    color: #00005b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: #109af0;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        width: 100%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(23px) saturate(180%);
        -webkit-backdrop-filter: blur(23px) saturate(180%);
    }

    .login-form-wrapper {
        width: 85%;
    }
}

/* Logo Styles */
.login-logo {
    width: 162px;
    height: auto;
    margin: 0 auto 18px;
    display: block;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #00005b;
    outline-offset: 2px;
}

button:focus-visible {
    outline-offset: 4px;
}
