/* WITER Login Page Custom Styles */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

/* Page Background */
.login-page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e2230 0%, #2a2e3f 50%, #1e2230 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page-wrapper::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    border-radius: 50%;
}

.login-page-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    bottom: -250px;
    left: -150px;
    border-radius: 50%;
}

/* Login Card Container */
.login-card-container {
    max-width: 440px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Card */
.login-card {
    background: rgba(45, 50, 65, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px 0 rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 42px 36px;
    padding-top: 75px;
    position: relative;
}

/* Logo Section */
.login-logo {
    position: absolute;
    top: 24px;
    left: 24px;
    max-width: 75px;
}

.login-logo img {
    max-width: 75px;
    height: auto;
    display: block;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 24px;
    right: 24px;
}

.language-dropdown {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-dropdown:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

.language-dropdown:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.7);
}

/* Welcome Text */
.login-welcome {
    text-align: center;
    margin-bottom: 32px;
    margin-top: 8px;
}

.login-welcome h1 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-welcome p {
    color: #b0b3c1;
    font-size: 15px;
    margin: 0;
}

/* Form Inputs */
.login-form-group {
    margin-bottom: 20px;
}

.login-input-wrapper {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b3c1;
    font-size: 18px;
    z-index: 2;
}

.login-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    color: #ffffff;
    padding: 13px 16px 13px 46px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-input::placeholder {
    color: #7d8093;
}

.login-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.login-input:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.25);
}

/* Remember Me Checkbox */
.login-remember {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #d4af37;
}

.login-remember label {
    color: #e0e2ec;
    font-size: 14px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

/* Login Button */
.login-button {
    width: 100%;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    border-radius: 10px;
    color: #1e2230;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #e0bf47 0%, #d4af37 100%);
}

.login-button:active {
    transform: translateY(0);
}

/* Forgot Password Link */
.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: #d4af37;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #e0bf47;
    text-decoration: underline;
}

/* Footer Links */
.login-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.login-footer-links a {
    color: #b0b3c1;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer-links a:hover {
    color: #d4af37;
}

/* Error Messages */
.login-error {
    color: #ff6b6b;
    font-size: 13px;
    margin-top: 8px;
    display: block;
}

/* Responsive */
@media (max-width: 576px) {
    .login-card {
        padding: 32px 24px;
        padding-top: 80px;
    }

    .login-logo {
        position: static;
        text-align: center;
        margin-bottom: 24px;
        max-width: 120px;
        margin-left: auto;
        margin-right: auto;
    }

    .login-welcome {
        margin-top: 0;
    }

    .login-welcome h1 {
        font-size: 24px;
    }

    .language-selector {
        position: static;
        text-align: right;
        margin-bottom: 20px;
    }

    .login-footer {
        margin-top: 32px;
    }

    .login-footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    animation: fadeInUp 0.6s ease-out;
}