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

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #f4f1e8 0%, #e8ddd4 50%, #d4c4a0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
.title-en, .section-en, .btn-en, .desc-en, .link-en {
    font-family: 'Playfair Display', serif;
}

.title-bo, .section-bo, .btn-bo, .desc-bo, .link-bo {
    font-family: 'Noto Sans Tibetan', sans-serif;
}

/* Language Toggle */
body.tibetan .title-en,
body.tibetan .section-en,
body.tibetan .btn-en,
body.tibetan .desc-en,
body.tibetan .link-en,
body.tibetan .lang-en {
    display: none;
}

body:not(.tibetan) .title-bo,
body:not(.tibetan) .section-bo,
body:not(.tibetan) .btn-bo,
body:not(.tibetan) .desc-bo,
body:not(.tibetan) .link-bo,
body:not(.tibetan) .lang-bo {
    display: none;
}

/* Header */
.header {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 50%, #CD853F 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header h1 {
    flex: 1;
    text-align: center;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lang-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Login Container */
.login-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.15);
    width: 100%;
    max-width: 400px;
    border: 2px solid rgba(139, 69, 19, 0.1);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #8B4513;
    font-weight: 700;
}

/* Form Styles */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #8B4513;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #DEB887;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
    font-family: inherit;
}

.input-group input:focus {
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.input-group input:hover {
    border-color: #CD853F;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #CD853F 0%, #DEB887 100%);
    color: #8B4513;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #DEB887 0%, #F5DEB3 100%);
}

/* Links */
.links {
    text-align: center;
    margin-top: 20px;
}

.links a {
    color: #8B4513;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    display: inline-block;
    margin: 5px 0;
}

.links a:hover {
    color: #CD853F;
    text-decoration: underline;
}

/* Messages */
.message {
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header h1 {
        order: -1;
    }
    
    .login-box {
        padding: 30px;
        margin: 20px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 20px 10px;
    }
    
    .login-box {
        padding: 25px;
        margin: 10px;
    }
    
    .input-group input {
        padding: 12px;
        font-size: 14px;
    }
    
    .login-btn {
        padding: 12px;
        font-size: 14px;
    }
}

/* Focus styles for accessibility */
.input-group input:focus,
.login-btn:focus,
.lang-btn:focus {
    outline: 2px solid #CD853F;
    outline-offset: 2px;
}

/* Animation */
.login-box {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
