/* Login Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(10,15,30,0.75), rgba(10,15,30,0.75)),
    url('https://images.unsplash.com/photo-1566073771259-6a8506099945') no-repeat center center/cover;
    background-attachment: fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    overflow-x: hidden;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    color: #fff;
}

.logo {
    text-align: center;
    margin-bottom: 10px;
    font-size: clamp(24px, 5vw, 28px);
    font-weight: 600;
    letter-spacing: 3px;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.subtitle {
    text-align: center;
    font-size: clamp(12px, 3vw, 14px);
    margin-bottom: 30px;
    opacity: 0.8;
    font-weight: 300;
    line-height: 1.4;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: clamp(11px, 2.5vw, 13px);
    line-height: 1.6;
    animation: slideDown 0.3s ease;
    word-wrap: break-word;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #ff6b6b;
}

.alert i {
    margin-right: 8px;
}

.alert .close {
    float: right;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.2s;
}

.alert .close:hover {
    opacity: 1;
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group label {
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.85;
    font-weight: 400;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.text-danger {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.validation-summary {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 13px;
}

.validation-summary ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.validation-summary li {
    margin: 4px 0;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
    accent-color: #d4af37;
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    opacity: 0.85;
    font-size: 13px;
}

.options a {
    color: #d4af37;
    text-decoration: none;
    transition: 0.2s;
}

.options a:hover {
    color: #f5c842;
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(135deg, #d4af37, #b8962e);
    color: #111;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212,175,55,0.5);
}

.login-btn:active {
    transform: translateY(0);
}

/* Prevent double-tap zoom on mobile */
.login-btn:focus {
    outline: none;
}

.footer-text {
    text-align: center;
    font-size: 12px;
    margin-top: 25px;
    opacity: 0.6;
    font-weight: 300;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tablet devices (portrait) */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 35px 30px;
        border-radius: 15px;
    }

    .alert {
        padding: 10px 12px;
        font-size: 12px;
    }

    .input-group {
        margin-bottom: 18px;
    }

    .options {
        margin-bottom: 20px;
    }
}

/* Mobile devices */
@media (max-width: 480px) {
    body {
        padding: 10px;
        background-attachment: scroll;
    }

    .login-container {
        padding: 30px 20px;
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    }

    .logo {
        margin-bottom: 8px;
        letter-spacing: 2px;
    }

    .subtitle {
        margin-bottom: 25px;
    }

    .alert {
        padding: 10px 12px;
        margin-bottom: 15px;
    }

    .alert strong {
        display: block;
        margin-bottom: 4px;
    }

    .input-group {
        margin-bottom: 16px;
    }

    .input-group label {
        font-size: 12px;
    }

    .input-group input {
        padding: 11px 35px 11px 12px;
        font-size: 14px;
    }

    .input-wrapper i {
        right: 12px;
        font-size: 13px;
    }

    .validation-summary {
        padding: 10px 12px;
        font-size: 11px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .checkbox-wrapper label {
        font-size: 12px;
    }

    .login-btn {
        padding: 12px;
        font-size: 14px;
    }

    .footer-text {
        font-size: 11px;
        margin-top: 20px;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    .login-container {
        padding: 25px 15px;
    }

    .input-group input {
        padding: 10px 32px 10px 10px;
        font-size: 13px;
    }

    .login-btn {
        padding: 11px;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 25px 30px;
        margin: 10px 0;
    }

    .logo {
        margin-bottom: 5px;
    }

    .subtitle {
        margin-bottom: 20px;
    }

    .input-group {
        margin-bottom: 14px;
    }

    .options {
        margin-bottom: 18px;
    }

    .footer-text {
        margin-top: 18px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-container {
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }
}
