/* MRK Training Login Page Styles */

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.login-background {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Decorative background elements */
.login-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

/* Logo in top-left */
.logo-container {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    color: #D4AF37;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: scale(1.05);
}

.logo-icon::before {
    content: '💎';
    font-size: 20px;
    color: white;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: -0.5px;
}

/* Main login card */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.1);
    max-width: 420px;
    width: 100%;
    margin: 2rem;
    position: relative;
}

/* Top arrow icon */
.top-icon {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.top-icon::before {
    content: '→';
    color: white;
    font-size: 18px;
    font-weight: bold;
}

/* Title section */
.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    font-size: 0.95rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Language selector */
.language-section {
    margin: 2rem 0;
}

.language-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 500;
}

.language-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    background: white;
    color: #6c757d;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.lang-btn:hover {
    border-color: #D4AF37;
    color: #D4AF37;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.lang-btn.active {
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border-color: #D4AF37;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Form inputs */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    margin-right: 8px;
    color: #D4AF37;
    width: 16px;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.form-control:focus {
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: white;
}

.form-control::placeholder {
    color: #adb5bd;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
}

.password-toggle:hover {
    color: #D4AF37;
}

/* Forgot password */
.forgot-password {
    text-align: right;
    margin-top: 0.5rem;
}

.forgot-password a {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-password a:hover {
    color: #D4AF37;
}

/* Submit button */
.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #D4AF37 0%, #B8941F 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: white;
}

/* Back to home - Enhanced Design */
.back-home {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #6c757d;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-home:hover {
    color: #D4AF37;
    border-color: #D4AF37;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.back-home i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.back-home:hover i {
    transform: translateX(-3px);
}

/* Alert styles */
.alert {
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: none;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.alert-danger .bi {
    color: #dc3545;
}

.alert-danger strong {
    color: #dc3545;
}

.alert-danger ul {
    color: #dc3545;
    font-size: 0.875rem;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.alert-success .bi {
    color: #198754;
}

.alert-success span {
    color: #198754;
}

/* Responsive */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        padding: 2rem;
    }
    
    .logo-container {
        top: 1rem;
        left: 1rem;
    }
    
    .back-home {
        bottom: 1rem;
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .language-buttons {
        gap: 0.5rem;
    }
    
    .lang-btn {
        width: 40px;
        height: 40px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-card {
        margin: 0.5rem;
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .back-home {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
}
