/* Reset and Base Styles */
:root {
    --primary-color: #892c8b;
    --secondary-color: #892c8b;
    --lullaboo-blue: #892c8b;
    --lullaboo-green: #50c878;
    --lullaboo-orange: #ffa500;
    --text-color: #231f20;
    --text-light: #231f20;
    --success-color: #38a169;
    --warning-color: #f39c12;
    --danger-color: #e53e3e;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #231f20;
    background: linear-gradient(135deg, var(--lullaboo-blue) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2rem;
    color: #892c8b;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #892c8b;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 200px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #892c8b, #a83c8a);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    font-weight: 500;
    color: #231f20;
    min-width: 100px;
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 4rem;
    color: #892c8b;
    margin-bottom: 30px;
}

.welcome-content h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #892c8b;
    margin-bottom: 20px;
}

.welcome-content > p {
    font-size: 1.2rem;
    color: #231f20;
    margin-bottom: 40px;
}

.training-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f7fafc;
    border-radius: 10px;
    border-left: 4px solid #892c8b;
}

.info-item i {
    font-size: 1.5rem;
    color: #892c8b;
}

.employee-info {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
}

.employee-info h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #892c8b;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #231f20;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #892c8b;
}

/* Button Styles */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #892c8b, #a83c8a);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #e2e8f0;
    color: #231f20;
}

.btn-secondary:hover {
    background: #cbd5e0;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    background-color: #e2e8f0 !important;
    color: #a0aec0 !important;
    border-color: #e2e8f0 !important;
    position: relative;
}

.btn:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Tooltip for disabled buttons */
.btn:disabled::after {
    content: "Please select an answer first";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    margin-bottom: 5px;
}

.btn:disabled::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #892c8b;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.btn:disabled:hover::after,
.btn:disabled:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Presentation Styles */
.presentation-content {
    max-width: 900px;
    margin: 0 auto;
}

.slide-counter {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1rem;
    color: #231f20;
}

.slide {
    display: none;
    min-height: 500px;
}

.slide.active {
    display: block;
}

.slide h2 {
    font-size: 2rem;
    color: #892c8b;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.slide h2 i {
    color: #892c8b;
}

.slide-content {
    font-size: 1.1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: #231f20;
    margin-bottom: 30px;
}

.key-points,
.password-rules,
.data-types,
.protection-guidelines {
    margin-bottom: 30px;
}

.key-points h3,
.password-rules h3,
.data-types h3,
.protection-guidelines h3 {
    color: #892c8b;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.key-points ul,
.protection-guidelines ul {
    list-style: none;
    padding: 0;
}

.key-points li,
.protection-guidelines li {
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.key-points li:last-child,
.protection-guidelines li:last-child {
    border-bottom: none;
}

.stat-box {
    background: linear-gradient(135deg, #fed7d7, #feb2b2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 30px;
}

.stat-box i {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 10px;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.example-box {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #892c8b;
}

.phishing-example {
    background: #fed7d7;
    padding: 15px;
    border-radius: 8px;
    font-family: monospace;
    margin-top: 10px;
}

.rule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f0fff4;
    border-radius: 8px;
}

.rule-item i {
    color: #38a169;
}

.password-examples {
    margin: 30px 0;
}

.example {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    font-family: monospace;
}

.example.weak {
    background: #fed7d7;
}

.example.strong {
    background: #f0fff4;
}

.mfa-section {
    background: #ebf8ff;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3182ce;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.data-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.data-item i {
    font-size: 2rem;
    color: #892c8b;
    margin-bottom: 15px;
}

.data-item h4 {
    color: #892c8b;
    margin-bottom: 10px;
}

.practices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.practice-item {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
}

.practice-item i {
    font-size: 1.5rem;
    color: #892c8b;
    margin-bottom: 15px;
}

.practice-item h4 {
    color: #892c8b;
    margin-bottom: 15px;
}

.practice-item ul {
    list-style: none;
    padding: 0;
}

.practice-item li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
}

.practice-item li::before {
    content: "•";
    color: #892c8b;
    position: absolute;
    left: 0;
}

.contact-info {
    background: #ebf8ff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.contact-info h3 {
    color: #892c8b;
    margin-bottom: 15px;
}

.contact-info p {
    margin: 5px 0;
    font-weight: 500;
}

.slide-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

/* Quiz Styles */
.quiz-content {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
}

.quiz-header h2 {
    font-size: 2rem;
    color: #892c8b;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quiz-header h2 i {
    color: #892c8b;
}

.quiz-progress {
    background: #f7fafc;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 15px;
}

.question-container {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    min-height: 300px;
}

.question {
    display: none;
}

.question.active {
    display: block;
}

.question h3 {
    color: #892c8b;
    margin-bottom: 25px;
    font-size: 1.3rem;
    line-height: 1.5;
}

.options {
    list-style: none;
    padding: 0;
}

.option {
    margin-bottom: 15px;
}

.option label {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option label:hover {
    border-color: #892c8b;
    background: #f0f4ff;
}

.option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.option input[type="radio"]:checked + span {
    font-weight: 500;
    color: #892c8b;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Results Styles */
.results-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.results-header {
    margin-bottom: 40px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.results-header.pass {
    background: linear-gradient(135deg, #f0fff4 0%, #e6ffed 100%);
    border: 3px solid #38a169;
    color: #2d3748;
}

.results-header.fail {
    background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
    border: 3px solid #e53e3e;
    color: #2d3748;
}

.results-header i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
}

.results-header.pass i {
    color: #38a169;
}

.results-header.fail i {
    color: #e53e3e;
}

.results-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #2d3748;
    font-weight: 700;
}

.score-display {
    font-size: 4rem;
    font-weight: 800;
    margin: 25px 0;
    padding: 20px 30px;
    border-radius: 15px;
    display: inline-block;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.results-header.pass .score-display {
    background: #38a169;
    color: white;
    box-shadow: 0 6px 20px rgba(56, 161, 105, 0.3);
}

.results-header.fail .score-display {
    background: #e53e3e;
    color: white;
    box-shadow: 0 6px 20px rgba(229, 62, 62, 0.3);
}

.results-header p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-top: 20px;
    font-weight: 500;
}

.results-details {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: left;
}

.question-review {
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 8px;
}

.question-review.correct {
    background: #f0fff4;
    border-left: 4px solid #38a169;
}

.question-review.incorrect {
    background: #fed7d7;
    border-left: 4px solid #e53e3e;
}

.question-review h4 {
    margin-bottom: 10px;
}

.question-review .status {
    font-weight: 500;
    margin-bottom: 5px;
}

.question-review .correct-answer {
    font-style: italic;
    color: #231f20;
}

.completion-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 1001;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Certificate Styles */
.certificate {
    background: linear-gradient(135deg, #892c8b 0%, #a83c8a 100%);
    color: white;
    padding: 60px 40px;
    text-align: center;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.certificate::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.certificate-header {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.certificate-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.certificate-logo {
    font-size: 4rem;
    margin-bottom: 20px;
}

.certificate-body {
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

.certificate-body p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.certificate-body h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.certificate-body h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 20px 0;
}

.certificate-details {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

.certificate-footer {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .progress-container {
        width: 100%;
        justify-content: center;
    }
    
    .screen {
        padding: 20px;
    }
    
    .welcome-content h2 {
        font-size: 2rem;
    }
    
    .training-info {
        grid-template-columns: 1fr;
    }
    
    .two-column {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .data-grid,
    .practices-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-navigation,
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .completion-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .certificate {
        padding: 40px 20px;
    }
    
    .certificate-header h1 {
        font-size: 2rem;
    }
    
    .certificate-body h2 {
        font-size: 2rem;
    }
}

/* New Email Security Styles */
.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.threat-item {
    background: #fff5f5;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #e53e3e;
}

.threat-item i {
    font-size: 2rem;
    color: #e53e3e;
    margin-bottom: 10px;
}

.threat-item h4 {
    color: #892c8b;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.spam-section {
    background: #f0f4ff;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #892c8b;
}

.spam-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.spam-tip {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.spam-tip i {
    font-size: 1.5rem;
    color: #892c8b;
    margin-top: 5px;
}

.spam-tip h4 {
    margin-bottom: 5px;
    color: #892c8b;
}

/* Data Protection Styles */
.privacy-laws {
    background: #f0fff4;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #38a169;
}

.law-items {
    margin-top: 20px;
}

.law-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.law-item i {
    font-size: 1.5rem;
    color: #38a169;
    margin-top: 5px;
}

.law-item h4 {
    margin-bottom: 5px;
    color: #892c8b;
}

.accounting-security {
    background: #ebf8ff;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #3182ce;
}

.accounting-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.accounting-tip {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.accounting-tip i {
    font-size: 1.5rem;
    color: #3182ce;
    margin-top: 5px;
}

.accounting-tip h4 {
    margin-bottom: 5px;
    color: #892c8b;
}

.breach-response {
    background: #fed7d7;
    padding: 25px;
    border-radius: 10px;
    margin-top: 30px;
    border-left: 4px solid #e53e3e;
}

.breach-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.step {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    font-weight: 500;
    color: #892c8b;
}

/* Safe Computing Styles */
.financial-security {
    background: #f0fff4;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #38a169;
}

.financial-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.financial-tip {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

.financial-tip i {
    font-size: 1.5rem;
    color: #38a169;
    margin-top: 5px;
}

.financial-tip h4 {
    margin-bottom: 5px;
    color: #892c8b;
}

.incident-response {
    background: #fff5f5;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    border-left: 4px solid #e53e3e;
}

.response-scenarios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.scenario {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid #e53e3e;
}

.scenario h4 {
    color: #892c8b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scenario h4 i {
    color: #e53e3e;
}

.scenario p {
    color: #231f20;
    font-weight: 500;
}

@media (max-width: 768px) {
    .threat-grid,
    .spam-tips,
    .accounting-tips,
    .financial-tips {
        grid-template-columns: 1fr;
    }
    
    .breach-steps {
        flex-direction: column;
    }
    
    .response-scenarios {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .welcome-content h2 {
        font-size: 1.5rem;
    }
    
    .slide h2 {
        font-size: 1.5rem;
    }
    
    .quiz-header h2 {
        font-size: 1.5rem;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .score-display {
        font-size: 2rem;
    }
}

/* Welcome Screen Enhancements */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-section i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.logo-section h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.training-features {
    margin: 3rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.4;
}

.training-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    color: #231f20;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #892c8b;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #892c8b !important;
    text-shadow: none;
    background: #f8f9fa;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    display: inline-block;
    border: 1px solid #e2e8f0;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.3;
}

.employee-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.employee-form h2 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.btn-primary i {
    font-size: 1.2rem;
}

/* Responsive Design for Welcome Screen */
@media (max-width: 768px) {
    .logo-section h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .training-stats {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .employee-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Gamification Elements */
.gamification-score {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.gamification-score i {
    font-size: 1.1rem;
    color: #fff;
}

.point-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.point-notification.show {
    transform: translateX(0);
}

.point-notification i {
    font-size: 1.2rem;
}

/* Interactive Mode Enhancements */
.interactive-scenario {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

.interactive-scenario::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.scenario-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.scenario-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.scenario-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.scenario-content {
    line-height: 1.6;
    color: var(--text-color);
}

.scenario-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.scenario-btn {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.scenario-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.scenario-btn.correct {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.scenario-btn.incorrect {
    background: #e74c3c;
    border-color: #e74c3c;
    color: white;
}

/* Enhanced Progress Bar */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mini-Game Elements */
.mini-game {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.mini-game h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.mini-game-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
}

.game-score {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 1rem;
}

/* Enhanced Question Styling */
.question.interactive {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.question.interactive h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.question.interactive .options {
    display: grid;
    gap: 1rem;
}

.question.interactive .option {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.question.interactive .option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.question.interactive .option label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.question.interactive .option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary-color);
}

/* Engagement Metrics Display */
.engagement-summary {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #e9ecef;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.engagement-item {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.engagement-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.engagement-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Responsive Design for Gamification */
@media (max-width: 768px) {
    .progress-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .gamification-score {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .point-notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .point-notification.show {
        transform: translateY(0);
    }
    
    .scenario-actions {
        flex-direction: column;
    }
    
    .scenario-btn {
        text-align: center;
    }
    
    .engagement-grid {
        grid-template-columns: 1fr;
    }
}

/* Gamification Results Display */
.gamification-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.gamification-results i {
    font-size: 1.2rem;
    color: #fff;
}

/* Enhanced Visual Quiz Elements */

/* Base Email Example Styles */
.email-example {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* CEO Fraud and BEC Attack Styling */
.email-example.phishing {
    border-color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.email-example.phishing .email-header {
    background: #f8d7da;
    border-bottom-color: #dc3545;
}

.email-example.legitimate {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.email-example.legitimate .email-header {
    background: #d4edda;
    border-bottom-color: #28a745;
}

.email-header {
    background: #e9ecef;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.email-field {
    margin-bottom: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
}

.email-body {
    padding: 1.5rem;
    background: white;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    border-bottom: 1px solid #dee2e6;
}

.red-flags {
    background: #fff5f5;
    padding: 1rem;
    border-top: 3px solid #e53e3e;
}

.red-flags h4 {
    color: #e53e3e;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.red-flags ul {
    margin: 0;
    padding-left: 1.5rem;
}

.red-flags li {
    color: #721c24;
    margin-bottom: 0.25rem;
}

/* Spam Examples Styling */
.spam-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.spam-example {
    border: 2px solid;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.spam-example:hover {
    transform: translateY(-2px);
}

.spam-example.spam {
    border-color: #dc3545;
}

.spam-example.legitimate {
    border-color: #28a745;
}

.email-preview {
    background: white;
    padding: 1rem;
}

.email-header-mini {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #495057;
}

.email-subject {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: #212529;
}

.email-content-preview {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.spam-indicator {
    padding: 0.75rem;
    text-align: center;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.spam-indicator.is-spam {
    background: #f8d7da;
    color: #721c24;
}

.spam-indicator.not-spam {
    background: #d4edda;
    color: #155724;
}

/* External Warning Banner */
.external-warning-example {
    margin: 1.5rem 0;
}

.warning-banner {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: bold;
    color: #856404;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.warning-banner i {
    font-size: 1.5rem;
    color: #ffc107;
}

.warning-explanation {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
}

.warning-explanation h4 {
    color: #495057;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-explanation h4 i {
    color: #17a2b8;
}

.warning-explanation p {
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.warning-explanation p:last-child {
    margin-bottom: 0;
}

/* Verification Steps */
.verification-steps {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border: 2px solid #17a2b8;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.verification-steps h4 {
    color: #17a2b8;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
}

.verification-steps h4 i {
    font-size: 1.3rem;
}

.steps-container {
    display: grid;
    gap: 1rem;
}

.verification-step {
    background: white;
    border: 1px solid #bee5eb;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.verification-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

.step-number {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h5 {
    color: #17a2b8;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.step-content p {
    color: #495057;
    margin: 0;
    line-height: 1.4;
    font-size: 0.9rem;
}

/* Enhanced Email Examples for CEO Fraud */
.email-example[data-type="ceo-fraud"] {
    border-color: #dc3545;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.email-example[data-type="ceo-fraud"] .email-header {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    border-bottom: 2px solid #dc3545;
}

.email-example[data-type="bec-attack"] {
    border-color: #6f42c1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.2);
}

.email-example[data-type="bec-attack"] .email-header {
    background: linear-gradient(135deg, #e2d9f3, #d1c4e9);
    border-bottom: 2px solid #6f42c1;
}

.email-example[data-type="spear-phishing"] {
    border-color: #fd7e14;
    box-shadow: 0 4px 15px rgba(253, 126, 20, 0.2);
}

.email-example[data-type="spear-phishing"] .email-header {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-bottom: 2px solid #fd7e14;
}

/* External Email Warning in Email Body */
.email-body .external-warning {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 1rem 0;
    font-weight: bold;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.email-body .external-warning i {
    color: #ffc107;
    font-size: 1.1rem;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .spam-examples {
        grid-template-columns: 1fr;
    }
    
    .verification-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .warning-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .email-header-mini,
    .email-subject,
    .email-content-preview {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .external-warning-example,
    .verification-steps,
    .spam-examples {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .verification-steps,
    .warning-explanation {
        padding: 1rem;
    }
    
    .steps-container {
        gap: 0.75rem;
    }
}

/* Base Password Examples */
.password-examples-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.password-example {
    border: 2px solid;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.password-example:hover {
    transform: translateY(-2px);
}

.password-display {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
}

.strength-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.strength-label {
    font-weight: bold;
    font-size: 0.9rem;
}

.strength-reason {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Enhanced Password Examples */
.password-example.red {
    border-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
}

.password-example.dark-red {
    border-color: #721c24;
    background: linear-gradient(135deg, #f8d7da, #f1b0b7);
}

.password-example.orange {
    border-color: #fd7e14;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.password-example.green {
    border-color: #28a745;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
}

.crack-time {
    font-size: 0.75rem;
    font-weight: bold;
    color: #495057;
    margin-top: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    display: inline-block;
}

/* Base Browser Mockup */
.browser-mockup {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.browser-bar {
    background: #f8f9fa;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.url-bar {
    flex: 1;
    background: white;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.security-indicator {
    padding: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.security-indicator.secure {
    background: #d4edda;
    color: #155724;
}

.security-indicator.insecure {
    background: #f8d7da;
    color: #721c24;
}

.website-content {
    padding: 2rem;
    text-align: center;
}

.login-form-mockup {
    max-width: 300px;
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.login-form-mockup input,
.login-form-mockup button {
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.login-form-mockup button {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Website Comparison */
.website-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0;
}

.website-comparison-item {
    border: 2px solid;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.website-comparison-item:hover {
    transform: translateY(-3px);
}

.website-comparison-item.legitimate {
    border-color: #28a745;
}

.website-comparison-item.phishing {
    border-color: #dc3545;
}

.website-header {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.website-comparison-item.legitimate .website-header {
    background: #d4edda;
    color: #155724;
}

.website-comparison-item.phishing .website-header {
    background: #f8d7da;
    color: #721c24;
}

.url-bar.secure {
    border-color: #28a745;
    background: #f8fff9;
}

.url-bar.insecure {
    border-color: #dc3545;
    background: #fff5f5;
}

/* Base Scenario Box */
.scenario-box {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.scenario-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scenario-header i {
    font-size: 1.5rem;
}

.scenario-header h4 {
    margin: 0;
    font-size: 1.1rem;
}

.scenario-content {
    padding: 1.5rem;
}

.scenario-dialogue {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 6px 6px 0;
}

.scenario-dialogue i {
    color: #ffc107;
    margin-right: 0.5rem;
}

.scenario-context {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0 6px 6px 0;
}

.scenario-context i {
    color: #17a2b8;
    margin-right: 0.5rem;
}

.urgency-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.urgency-indicator.high {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.urgency-indicator.medium {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.urgency-indicator.low {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

/* Enhanced Question Container */
.question-container {
    min-height: 400px;
}

.question {
    animation: fadeIn 0.3s ease-in-out;
}

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

/* Login Screen Styles */
.login-content {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
}

.login-header {
    margin-bottom: 2.5rem;
}

.login-logo {
    margin-bottom: 2rem;
    position: relative;
}

.login-logo i {
    font-size: 4.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.login-header h2 {
    font-size: 2.4rem;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Enhanced Authentication Toggle */
.auth-toggle {
    display: flex;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 2rem;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.toggle-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.toggle-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.toggle-btn.active::before {
    opacity: 0.1;
}

.toggle-btn:hover:not(.active) {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.toggle-btn i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.toggle-btn span {
    position: relative;
    z-index: 1;
}

/* Enhanced Microsoft Authentication */
.microsoft-auth {
    margin-bottom: 2rem;
}

.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Enhanced Divider */
.divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    letter-spacing: 0.5px;
}

/* Enhanced Login Form */
.login-form {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.login-form .form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.login-form label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Enhanced Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
}

.password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Login Button */
.login-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(102, 126, 234, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.login-btn:hover::before {
    left: 100%;
}

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

.login-btn i {
    font-size: 1.2rem;
}

/* Enhanced Footer */
.login-footer {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-help {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-help p {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.login-help p:first-child {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.login-help p i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.security-notice {
    background: linear-gradient(135deg, #e8f4fd, #f0f8ff);
    border: 2px solid #17a2b8;
    padding: 1.25rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #17a2b8;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.15);
}

.security-notice i {
    font-size: 1.3rem;
    filter: drop-shadow(0 1px 2px rgba(23, 162, 184, 0.2));
}

/* Enhanced Auth Status */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

/* Form Validation Enhancements */
.form-group input.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group input.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Signup Mode Specific Styles */
.signup-mode .login-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-mode .security-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.signup-mode .security-notice i {
    color: #0ea5e9;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .login-content {
        margin: 1rem;
        max-width: none;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem 2rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .auth-toggle {
        margin-bottom: 1.5rem;
    }
    
    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .login-footer {
        gap: 1rem;
    }
    
    .login-help,
    .security-notice {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-logo i {
        font-size: 3.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-form {
        padding: 1.75rem 1.25rem;
        margin: 0 -1rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .btn-microsoft {
        padding: 16px 20px;
    }
    
    .login-btn {
        padding: 16px 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .microsoft-auth {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .login-form input,
    .login-form select {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }
    
    .login-form input:focus,
    .login-form select:focus {
        background: rgba(51, 65, 85, 0.9);
    }
    
    .auth-toggle {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .toggle-btn.active {
        background: rgba(71, 85, 105, 0.8);
        color: #e2e8f0;
    }
    
    .divider span {
        background: rgba(30, 41, 59, 0.95);
        color: #94a3b8;
    }
    
    .login-help {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
    }
}

/* Enhanced Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
    z-index: 2;
}

.password-input-container .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Group Styling */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.form-group label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label span {
    flex: 1;
}

/* Enhanced Input Styling */
.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    appearance: none;
}

.login-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

/* Enhanced Microsoft Button with Better Branding */
.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Loading state for Microsoft button */
.btn-microsoft.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-microsoft.loading span {
    opacity: 0.7;
}

.btn-microsoft.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Authentication Status Messages */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
    animation: slideIn 0.3s ease;
}

.auth-status.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-status.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

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

/* Enhanced Form Validation with Better Visual Feedback */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Signup Mode Specific Styles */
.signup-mode .login-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-mode .security-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.signup-mode .security-notice i {
    color: #0ea5e9;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .login-content {
        margin: 1rem;
        max-width: none;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem 2rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .auth-toggle {
        margin-bottom: 1.5rem;
    }
    
    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .login-footer {
        gap: 1rem;
    }
    
    .login-help,
    .security-notice {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-logo i {
        font-size: 3.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-form {
        padding: 1.75rem 1.25rem;
        margin: 0 -1rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .btn-microsoft {
        padding: 16px 20px;
    }
    
    .login-btn {
        padding: 16px 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .microsoft-auth {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .login-form input,
    .login-form select {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }
    
    .login-form input:focus,
    .login-form select:focus {
        background: rgba(51, 65, 85, 0.9);
    }
    
    .auth-toggle {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .toggle-btn.active {
        background: rgba(71, 85, 105, 0.8);
        color: #e2e8f0;
    }
    
    .divider span {
        background: rgba(30, 41, 59, 0.95);
        color: #94a3b8;
    }
    
    .login-help {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
    }
}

/* Enhanced Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
    z-index: 2;
}

.password-input-container .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Group Styling */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.form-group label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label span {
    flex: 1;
}

/* Enhanced Input Styling */
.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    appearance: none;
}

.login-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

/* Enhanced Microsoft Button with Better Branding */
.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Loading state for Microsoft button */
.btn-microsoft.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-microsoft.loading span {
    opacity: 0.7;
}

.btn-microsoft.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Authentication Status Messages */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
    animation: slideIn 0.3s ease;
}

.auth-status.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-status.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

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

/* Enhanced Form Validation with Better Visual Feedback */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Signup Mode Specific Styles */
.signup-mode .login-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-mode .security-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.signup-mode .security-notice i {
    color: #0ea5e9;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .login-content {
        margin: 1rem;
        max-width: none;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem 2rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .auth-toggle {
        margin-bottom: 1.5rem;
    }
    
    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .login-footer {
        gap: 1rem;
    }
    
    .login-help,
    .security-notice {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-logo i {
        font-size: 3.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-form {
        padding: 1.75rem 1.25rem;
        margin: 0 -1rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .btn-microsoft {
        padding: 16px 20px;
    }
    
    .login-btn {
        padding: 16px 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .microsoft-auth {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .login-form input,
    .login-form select {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }
    
    .login-form input:focus,
    .login-form select:focus {
        background: rgba(51, 65, 85, 0.9);
    }
    
    .auth-toggle {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .toggle-btn.active {
        background: rgba(71, 85, 105, 0.8);
        color: #e2e8f0;
    }
    
    .divider span {
        background: rgba(30, 41, 59, 0.95);
        color: #94a3b8;
    }
    
    .login-help {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
    }
}

/* Enhanced Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
    z-index: 2;
}

.password-input-container .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Group Styling */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.form-group label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label span {
    flex: 1;
}

/* Enhanced Input Styling */
.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    appearance: none;
}

.login-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

/* Enhanced Microsoft Button with Better Branding */
.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Loading state for Microsoft button */
.btn-microsoft.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-microsoft.loading span {
    opacity: 0.7;
}

.btn-microsoft.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Authentication Status Messages */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
    animation: slideIn 0.3s ease;
}

.auth-status.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-status.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

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

/* Enhanced Form Validation with Better Visual Feedback */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Signup Mode Specific Styles */
.signup-mode .login-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-mode .security-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.signup-mode .security-notice i {
    color: #0ea5e9;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .login-content {
        margin: 1rem;
        max-width: none;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem 2rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .auth-toggle {
        margin-bottom: 1.5rem;
    }
    
    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .login-footer {
        gap: 1rem;
    }
    
    .login-help,
    .security-notice {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-logo i {
        font-size: 3.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-form {
        padding: 1.75rem 1.25rem;
        margin: 0 -1rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .btn-microsoft {
        padding: 16px 20px;
    }
    
    .login-btn {
        padding: 16px 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .microsoft-auth {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .login-form input,
    .login-form select {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }
    
    .login-form input:focus,
    .login-form select:focus {
        background: rgba(51, 65, 85, 0.9);
    }
    
    .auth-toggle {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .toggle-btn.active {
        background: rgba(71, 85, 105, 0.8);
        color: #e2e8f0;
    }
    
    .divider span {
        background: rgba(30, 41, 59, 0.95);
        color: #94a3b8;
    }
    
    .login-help {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
    }
}

/* Enhanced Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
    z-index: 2;
}

.password-input-container .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Group Styling */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.form-group label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label span {
    flex: 1;
}

/* Enhanced Input Styling */
.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    appearance: none;
}

.login-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

/* Enhanced Microsoft Button with Better Branding */
.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Loading state for Microsoft button */
.btn-microsoft.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-microsoft.loading span {
    opacity: 0.7;
}

.btn-microsoft.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Authentication Status Messages */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
    animation: slideIn 0.3s ease;
}

.auth-status.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-status.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

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

/* Enhanced Form Validation with Better Visual Feedback */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Signup Mode Specific Styles */
.signup-mode .login-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-mode .security-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.signup-mode .security-notice i {
    color: #0ea5e9;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .login-content {
        margin: 1rem;
        max-width: none;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem 2rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .auth-toggle {
        margin-bottom: 1.5rem;
    }
    
    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .login-footer {
        gap: 1rem;
    }
    
    .login-help,
    .security-notice {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-logo i {
        font-size: 3.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-form {
        padding: 1.75rem 1.25rem;
        margin: 0 -1rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .btn-microsoft {
        padding: 16px 20px;
    }
    
    .login-btn {
        padding: 16px 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .microsoft-auth {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .login-form input,
    .login-form select {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }
    
    .login-form input:focus,
    .login-form select:focus {
        background: rgba(51, 65, 85, 0.9);
    }
    
    .auth-toggle {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .toggle-btn.active {
        background: rgba(71, 85, 105, 0.8);
        color: #e2e8f0;
    }
    
    .divider span {
        background: rgba(30, 41, 59, 0.95);
        color: #94a3b8;
    }
    
    .login-help {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
    }
}

/* Enhanced Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
    z-index: 2;
}

.password-input-container .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Group Styling */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.form-group label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label span {
    flex: 1;
}

/* Enhanced Input Styling */
.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    appearance: none;
}

.login-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

/* Enhanced Microsoft Button with Better Branding */
.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Loading state for Microsoft button */
.btn-microsoft.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-microsoft.loading span {
    opacity: 0.7;
}

.btn-microsoft.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Authentication Status Messages */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
    animation: slideIn 0.3s ease;
}

.auth-status.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-status.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

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

/* Enhanced Form Validation with Better Visual Feedback */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    color: white;
}

/* Signup Mode Specific Styles */
.signup-mode .login-header h2 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-mode .security-notice {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
    color: #0ea5e9;
}

.signup-mode .security-notice i {
    color: #0ea5e9;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .login-content {
        margin: 1rem;
        max-width: none;
    }
    
    .login-form {
        padding: 2rem 1.5rem;
        border-radius: 20px;
        margin: 0 -0.5rem 2rem;
    }
    
    .login-header h2 {
        font-size: 2rem;
    }
    
    .login-header p {
        font-size: 1rem;
    }
    
    .auth-toggle {
        margin-bottom: 1.5rem;
    }
    
    .toggle-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .login-footer {
        gap: 1rem;
    }
    
    .login-help,
    .security-notice {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .login-logo i {
        font-size: 3.5rem;
    }
    
    .login-header h2 {
        font-size: 1.8rem;
    }
    
    .login-header p {
        font-size: 0.95rem;
    }
    
    .login-form {
        padding: 1.75rem 1.25rem;
        margin: 0 -1rem 1.5rem;
        border-radius: 16px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .toggle-btn {
        padding: 14px 20px;
    }
    
    .btn-microsoft {
        padding: 16px 20px;
    }
    
    .login-btn {
        padding: 16px 20px;
    }
    
    .divider {
        margin: 20px 0;
    }
    
    .microsoft-auth {
        margin-bottom: 1.5rem;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .login-form {
        background: rgba(30, 41, 59, 0.95);
        border-color: rgba(71, 85, 105, 0.3);
    }
    
    .login-form input,
    .login-form select {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
        color: #f1f5f9;
    }
    
    .login-form input:focus,
    .login-form select:focus {
        background: rgba(51, 65, 85, 0.9);
    }
    
    .auth-toggle {
        background: rgba(51, 65, 85, 0.8);
        border-color: rgba(71, 85, 105, 0.5);
    }
    
    .toggle-btn.active {
        background: rgba(71, 85, 105, 0.8);
        color: #e2e8f0;
    }
    
    .divider span {
        background: rgba(30, 41, 59, 0.95);
        color: #94a3b8;
    }
    
    .login-help {
        background: rgba(51, 65, 85, 0.6);
        border-color: rgba(71, 85, 105, 0.5);
    }
}

/* Enhanced Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container input {
    padding-right: 50px;
}

.password-input-container .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    padding: 4px;
    border-radius: 6px;
    z-index: 2;
}

.password-input-container .password-toggle:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Enhanced Form Group Styling */
.form-group {
    margin-bottom: 1.75rem;
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.25px;
}

.form-group label i {
    color: var(--primary-color);
    width: 18px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group label span {
    flex: 1;
}

/* Enhanced Input Styling */
.login-form input,
.login-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    color: var(--text-color);
    font-weight: 500;
    font-family: inherit;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 
        0 0 0 4px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.login-form input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.login-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 14px center;
    background-repeat: no-repeat;
    background-size: 18px;
    padding-right: 45px;
    appearance: none;
}

.login-form select:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

/* Enhanced Microsoft Button with Better Branding */
.btn-microsoft {
    width: 100%;
    background: linear-gradient(135deg, #0078d4, #106ebe);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.25px;
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe, #005a9e);
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 120, 212, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-microsoft:hover::before {
    left: 100%;
}

.btn-microsoft:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.25),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-microsoft i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.btn-microsoft span {
    font-weight: 600;
    letter-spacing: 0.25px;
}

/* Loading state for Microsoft button */
.btn-microsoft.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-microsoft.loading span {
    opacity: 0.7;
}

.btn-microsoft.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Authentication Status Messages */
.auth-status {
    background: linear-gradient(135deg, #17a2b8, #20c997);
    color: white;
    padding: 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.25);
    animation: slideIn 0.3s ease;
}

.auth-status.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.auth-status.success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.auth-status i {
    font-size: 1.2rem;
}

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

/* Enhanced Form Validation with Better Visual Feedback */
.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
    background: #fef2f2;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: shake 0.5s ease-in-out;
}

.form-group input.success,
.form-group select.success {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-group .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.form-group .success-message {
    color: #10b981;
    font-size: 0.85rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

/* Enhanced Password Strength Indicator */
.password-strength {
    margin-top: 12px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.password-strength.show {
    display: block;
}

.strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.strength-weak { 
    background: linear-gradient(135deg, #ef4444, #dc2626); 
    width: 25%; 
}

.strength-fair { 
    background: linear-gradient(135deg, #f59e0b, #d97706); 
    width: 50%; 
}

.strength-good { 
    background: linear-gradient(135deg, #3b82f6, #2563eb); 
    width: 75%; 
}

.strength-strong { 
    background: linear-gradient(135deg, #10b981, #059669); 
    width: 100%; 
}

.strength-text {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    text-align: center;
}

/* Enhanced Login Help Section */
.login-help {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.login-help p {
    margin: 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-bottom: 8px;
}

.login-help p:last-child {
    margin-bottom: 0;
}

.login-help p:first-child {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.login-help p i {
    color: var(--primary-color);
        font-size: 1rem;
    width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-help p span {
    flex: 1;
}

/* Professional Microsoft Branding */
.microsoft-auth {
    margin-bottom: 2rem;
    }
    
    .btn-microsoft {
    position: relative;
    background: #0078d4;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.btn-microsoft::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #0078d4, #106ebe, #005a9e);
    border-radius: 14px;
    z-index: -1;
}

.btn-microsoft:hover {
    background: #106ebe;
}

.btn-microsoft:focus {
    outline: none;
    box-shadow: 
        0 0 0 4px rgba(0, 120, 212, 0.2),
        0 8px 20px rgba(0, 120, 212, 0.3);
}

/* Accessibility Improvements */
.login-form input:focus-visible,
.login-form select:focus-visible,
.btn-microsoft:focus-visible,
.login-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-form input,
    .login-form select {
        border-width: 3px;
    }
    
    .btn-microsoft,
    .login-btn {
        border: 3px solid transparent;
    }
    
    .toggle-btn.active {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .login-btn::before,
    .btn-microsoft::before,
    .strength-fill::after {
        animation: none;
    }
    
    .login-btn:hover,
    .btn-microsoft:hover,
    .toggle-btn:hover {
        transform: none;
    }
    
    .form-group input.error {
        animation: none;
    }
}

/* Enhanced Authentication Options */
.auth-options-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-options-header h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.auth-options-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.primary-auth-btn {
    position: relative;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.primary-auth-btn small {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: normal;
}

.email-auth-option {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.email-auth-option:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.15);
}

.email-auth-option h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.email-auth-option p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9rem;
}

.divider {
    text-align: center;
    position: relative;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-light);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Enhanced Visual Quiz Elements */

/* Workspace Security Comparison */
.workspace-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.workspace-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.workspace-option:hover {
    transform: translateY(-3px);
    border-color: #892c8b;
}

.workspace-description h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* USB Security Scenarios - Neutralized */
.usb-scenarios {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.usb-scenarios h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.usb-scenario {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 0.75rem 0;
    border-radius: 8px;
    transition: transform 0.2s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border: 1px solid #e9ecef;
}

.usb-scenario:hover {
    transform: translateX(5px);
    border-color: #892c8b;
}

.scenario-content {
    flex: 1;
}

.scenario-content p {
    margin: 0.25rem 0;
}

/* Invoice Example Styling - Neutralized */
.invoice-example {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.invoice-example .email-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 1px solid #e9ecef;
}

/* Workstation States Comparison - Neutralized */
.workstation-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.workstation-state {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.workstation-state:hover {
    transform: translateY(-3px);
    border-color: #892c8b;
}

.state-content h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

/* Password Examples - Neutralized */
.password-examples-visual {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.password-example {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s ease;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.password-example:hover {
    transform: translateY(-3px);
    border-color: #892c8b;
}

.password-display {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.password-info {
    text-align: center;
}

.password-description {
    color: var(--text-light);
    font-size: 0.9rem;
    font-style: italic;
}

/* Email Examples - Neutralized */
.email-example {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: white;
}

.email-header {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.email-body {
    padding: 1.5rem;
    line-height: 1.6;
    background: white;
}

.external-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 0.75rem;
    margin: 1rem 0;
    color: #856404;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.external-warning i {
    color: #ffc107;
}

/* Responsive Design for New Elements */
@media (max-width: 768px) {
    .workspace-comparison,
    .workstation-comparison {
        grid-template-columns: 1fr;
    }
    
    .usb-scenario {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .scenario-content {
        text-align: center;
    }
    
    .state-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .workspace-option,
    .workstation-state,
    .usb-ranking {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .usb-ranking {
        padding: 1rem;
    }
    
    .workspace-option,
    .workstation-state {
        padding: 1rem;
    }
}

/* Department Modal Styles */
.department-modal {
    z-index: 10000;
}

.department-selection {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.department-selection .modal-header {
    background: linear-gradient(135deg, #892c8b 0%, #a83c8a 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.department-selection .modal-header i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
}

.department-selection .modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.department-selection .modal-header p {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.department-form {
    padding: 30px;
}

.department-form .form-group {
    margin-bottom: 25px;
}

.department-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #892c8b;
    margin-bottom: 12px;
    font-size: 1rem;
}

.department-form label i {
    color: #892c8b;
    font-size: 1.1rem;
}

.department-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%236b7280' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.department-form select:focus {
    outline: none;
    border-color: #892c8b;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24'%3e%3cpath fill='%23667eea' d='M12 15.5L6 9.5h12l-6 6z'/%3e%3c/svg%3e");
}

.department-form .form-actions {
    text-align: center;
    margin-top: 30px;
}

.department-form .btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    min-width: 200px;
    transition: all 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Help Text Styling */
.help-text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 10px 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    color: #1565c0;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

.help-text i {
    color: #1976d2;
}

/* Highlight Required Field */
.highlight-required {
    border-color: #892c8b !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    }
}

/* Improved Auth Status */
.auth-status {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    font-weight: 500;
    margin-top: 20px;
    animation: slideIn 0.3s ease-out;
}

.auth-status.info {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.auth-status.success {
    background: #e8f5e8;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.auth-status.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.auth-status.warning {
    background: #fff8e1;
    color: #ef6c00;
    border: 1px solid #ffecb3;
}

/* Improved Microsoft Button */
.btn-microsoft {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    border: none;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-microsoft:hover {
    background: linear-gradient(135deg, #106ebe 0%, #005a9e 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 110, 190, 0.3);
}

.btn-microsoft:active {
    transform: translateY(0);
}

.btn-microsoft i {
    font-size: 1.2rem;
}

.btn-microsoft small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
    margin-top: 2px;
}

/* Improved Login Form */
.login-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #892c8b;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.login-form label i {
    color: #892c8b;
    width: 16px;
    text-align: center;
}

.login-form input,
.login-form select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.login-form input:focus,
.login-form select:focus {
    outline: none;
    border-color: #892c8b;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Improved Toggle Buttons */
.auth-toggle {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 30px;
    gap: 6px;
}

.toggle-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.toggle-btn.active {
    background: #ffffff;
    color: #892c8b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

/* Improved Auth Options */
.auth-options-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-options-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #892c8b;
    margin-bottom: 8px;
}

.auth-options-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.email-auth-option {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.email-auth-option:hover {
    border-color: #892c8b;
    background: #f1f5f9;
}

.email-auth-option h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #892c8b;
    margin-bottom: 8px;
}

.email-auth-option h4 i {
    color: #892c8b;
}

.email-auth-option p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

/* Improved Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: #ffffff;
    color: #64748b;
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* User Info in Header */
.user-info {
    display: none;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.user-info span {
    color: #892c8b;
    font-weight: 500;
}

.user-info .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .department-selection {
        margin: 20px;
        max-width: none;
    }
    
    .department-form {
        padding: 25px;
    }
    
    .login-form {
        padding: 30px 25px;
        margin-top: 20px;
    }
    
    .auth-toggle {
        flex-direction: column;
        gap: 8px;
    }
    
    .toggle-btn {
        padding: 15px;
    }
    
    .header {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .department-selection .modal-header {
        padding: 25px 20px;
    }
    
    .department-form {
        padding: 20px;
    }
    
    .login-form {
        padding: 25px 20px;
    }
    
    .btn-microsoft {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Pre-Quiz Presentation Screen Styles */
.presentation-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.presentation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.presentation-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.presentation-header p {
    color: var(--text-color);
    font-size: 1.1rem;
}

.pdf-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.pdf-viewer {
    margin-bottom: 2rem;
}

.pdf-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.reading-confirmation {
    display: flex;
    justify-content: center;
}

.confirmation-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-color);
    gap: 0.75rem;
}

.confirmation-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    position: relative;
    transition: all 0.3s ease;
}

.confirmation-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.confirmation-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.pdf-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.presentation-info {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 0.25rem;
}

.info-item h4 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.info-item p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Responsive Design for Presentation */
@media (max-width: 768px) {
    .presentation-content {
        padding: 1rem;
    }
    
    .pdf-container {
        padding: 1rem;
    }
    
    .pdf-viewer iframe {
        height: 400px;
    }
    
    .pdf-actions {
        flex-direction: column;
    align-items: center;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .confirmation-text {
        font-size: 1rem;
    }
}

/* Button disabled state for proceed button */
#proceedToQuizBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #9ca3af;
}

#proceedToQuizBtn:disabled:hover {
    background: #9ca3af;
    transform: none;
}

/* Email Status Notification */
.email-status-notification {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.email-status-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.email-status-notification.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

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

/* Email Configuration Result Messages */
.email-config-result {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-weight: 500;
    animation: slideInUp 0.3s ease-out;
}

.email-config-result.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid #059669;
}

.email-config-result.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: 1px solid #dc2626;
}

.email-config-result.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: 1px solid #d97706;
}

.email-config-result.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: 1px solid #2563eb;
}

/* Email Configuration Modal Improvements */
.email-config-content {
    max-width: 500px;
    margin: 0 auto;
}

.email-config-content .form-group {
    margin-bottom: 20px;
}

.email-config-content .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.email-config-content .form-group input,
.email-config-content .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.email-config-content .form-group input:focus,
.email-config-content .form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.email-config-content .form-group small {
    display: block;
    margin-top: 6px;
    color: #6b7280;
    font-size: 12px;
}

.email-config-content .form-group small a {
    color: #3b82f6;
    text-decoration: none;
}

.email-config-content .form-group small a:hover {
    text-decoration: underline;
}

.email-config-content .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.email-config-content .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.email-config-content .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.email-config-content .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.email-config-content .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.email-config-content .btn-secondary:hover {
    background: #e5e7eb;
}

/* Improved Email Status Notification */
.email-status-notification {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.email-status-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.email-status-notification.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-content i {
    font-size: 18px;
}

.notification-content .btn {
    margin-left: 10px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.notification-content .btn-sm {
    padding: 4px 8px;
    font-size: 11px;
}

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

/* Email Status Notification */
.email-status-notification {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    animation: slideInUp 0.5s ease-out;
}

.email-status-notification.error {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.email-status-notification.warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification-content i {
    font-size: 1.2rem;
}

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

/* Real Email Example Styles */
.email-example-container {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 0 auto;
}

.email-example-container .email-header {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 15px 20px;
    border-bottom: 1px solid #d1d5db;
}

.email-example-container .email-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.email-example-container .email-header i {
    color: #ef4444;
}

.email-warning {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 15px;
    margin: 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.email-warning i {
    color: #dc2626;
    font-size: 1.1rem;
}

.email-fields {
    padding: 0 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.email-field {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.email-field:last-child {
    border-bottom: none;
}

.email-field strong {
    color: #374151;
    display: inline-block;
    width: 60px;
    font-weight: 600;
}

.email-body {
    padding: 20px;
    background: white;
}

.email-content {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    white-space: pre-wrap;
}

.analysis-prompt {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 15px 20px;
    border-top: 1px solid #d1d5db;
    color: #1e40af;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-prompt i {
    color: #3b82f6;
    font-size: 1.1rem;
}

.analysis-prompt strong {
    color: #1e40af;
}

/* Responsive design for email example */
@media (max-width: 768px) {
    .email-example-container {
        margin: 0;
        border-radius: 8px;
    }
    
    .email-fields {
        padding: 0 15px;
    }
    
    .email-field {
        font-size: 0.85rem;
    }
    
    .email-field strong {
        width: 50px;
    }
    
    .email-body {
        padding: 15px;
    }
    
    .email-content {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .analysis-prompt {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Email Configuration Result Messages */

/* Enhanced Quiz Navigation Blocking Styles */
.answer-required-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
    animation: slideInWarning 0.5s ease-out;
}

.answer-required-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #92400e;
    font-weight: 600;
    font-size: 1.1rem;
}

.answer-required-content i {
    color: #f59e0b;
    font-size: 1.2rem;
}

@keyframes slideInWarning {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Message Styles */
.floating-message {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 12px;
    padding: 15px 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid #e5e7eb;
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
    transition: all 0.3s ease;
}

.floating-message.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.floating-message.warning {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.floating-message.warning i {
    color: #f59e0b;
}

.floating-message.info {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.floating-message.info i {
    color: #3b82f6;
}

/* Answer Required Highlight Effect */
.answer-required-highlight {
    animation: answerRequiredPulse 2s ease-in-out;
    border: 3px solid #f59e0b !important;
    border-radius: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

@keyframes answerRequiredPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

/* Enhanced Disabled Button Styles */
.btn.disabled-tooltip {
    position: relative;
}

.btn.disabled-tooltip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #374151;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    opacity: 1;
    visibility: visible;
    animation: tooltipFadeIn 0.3s ease;
}

.btn.disabled-tooltip:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #374151;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    animation: tooltipFadeIn 0.3s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        visibility: hidden;
    }
    to {
        opacity: 1;
        visibility: visible;
    }
}

/* Enhanced Next Button Animation */
.btn-primary:disabled {
    animation: disabledButtonPulse 2s infinite;
}

@keyframes disabledButtonPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Quiz Navigation Improvements */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.quiz-navigation .btn {
    min-width: 140px;
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 24px;
    transition: all 0.3s ease;
}

.quiz-navigation .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness for quiz blocking elements */
@media (max-width: 768px) {
    .floating-message {
        left: 10px;
        right: 10px;
        transform: none;
        font-size: 1rem;
        padding: 12px 20px;
    }
    
    .floating-message.show {
        transform: none;
    }
    
    .answer-required-message {
        margin: 15px 0;
        padding: 12px 15px;
    }
    
    .answer-required-content {
        font-size: 1rem;
    }
    
    .quiz-navigation {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .quiz-navigation .btn {
        width: 100%;
        min-width: auto;
    }
}

/* Email Configuration Result Messages *//* ==========================================================================
   LULLABOO LOGO AND BRANDING STYLES
   ========================================================================== */

/* Main Logo Styles */
.logo-image {
    height: 50px;
    width: auto;
    margin-right: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Login Logo Styles */
.login-logo-image {
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Shield overlay removed to prevent overlap */

.login-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

/* Welcome Screen Logo */
.welcome-logo {
    height: 120px;
    width: auto;
    margin-bottom: 10px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    display: block;
}

/* Shield overlay removed to prevent logo overlap */

.logo-section {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Admin Logo Styles */
.admin-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-logo {
    height: 60px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.admin-title-section h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.admin-title-section p {
    margin: 10px 0 0 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Enhanced Branding Colors Override */
.btn-primary {
    background: linear-gradient(135deg, var(--lullaboo-blue) 0%, var(--lullaboo-green) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #45b86b 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4) !important;
}

.login-btn {
    background: linear-gradient(135deg, var(--lullaboo-blue) 0%, var(--lullaboo-green) 100%) !important;
}

.login-btn:hover {
    background: linear-gradient(135deg, #3a7bc8 0%, #45b86b 100%) !important;
}

/* Progress and Navigation Branding */
.progress-fill {
    background: linear-gradient(90deg, var(--lullaboo-blue), var(--lullaboo-green)) !important;
}

.nav-btn.active {
    background: var(--lullaboo-blue) !important;
    color: white !important;
    border-color: var(--lullaboo-blue) !important;
}

/* Certificate Branding */
.certificate {
    border-color: var(--lullaboo-blue) !important;
}

.certificate::before {
    background: linear-gradient(135deg, var(--lullaboo-blue) 0%, var(--lullaboo-green) 100%) !important;
}

/* Enhanced Form Focus States */
.form-group input:focus,
.form-group select:focus {
    border-color: var(--lullaboo-blue) !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1) !important;
}

/* Brand Color Accents */
.info-item {
    border-left-color: var(--lullaboo-blue) !important;
}

.info-item i {
    color: var(--lullaboo-blue) !important;
}

.feature-item i {
    color: var(--lullaboo-blue) !important;
}

.stat-number {
    color: var(--lullaboo-blue) !important;
}

.quiz-header h2 i {
    color: var(--lullaboo-blue) !important;
}

/* Interactive Elements Branding */
.scenario-btn.correct {
    background: var(--lullaboo-green) !important;
}

.option input[type="radio"]:checked + span {
    background: var(--lullaboo-blue) !important;
    color: white !important;
}

/* Security Badge Styling */
.security-notice {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, rgba(80, 200, 120, 0.1) 100%) !important;
    border: 1px solid var(--lullaboo-blue) !important;
}

.security-notice i {
    color: var(--lullaboo-blue) !important;
}

/* Mobile Responsive Logo Adjustments */
@media (max-width: 768px) {
    .logo-image {
        height: 40px;
        margin-right: 10px;
    }

    .login-logo-image {
        height: 60px;
    }

    .welcome-logo {
        height: 80px;
    }

    .admin-logo {
        height: 45px;
    }

    .admin-logo-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .admin-title-section h1 {
        font-size: 2rem;
    }

    .admin-title-section p {
        font-size: 1rem;
    }

    .logo-section {
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* Shield overlay styles removed */
}

@media (max-width: 480px) {
    .logo-image {
        height: 35px;
        margin-right: 8px;
    }

    .login-logo-image {
        height: 50px;
    }

    .welcome-logo {
        height: 60px;
    }

    .admin-logo {
        height: 40px;
    }

    /* Shield overlay styles removed */

    /* Shield overlay styles removed */

    .logo-section {
        margin-bottom: 25px;
        padding: 0 5px;
    }
}

/* Email Template Branding */
.email-template {
    border-left: 4px solid var(--lullaboo-blue) !important;
}

.email-template h4 {
    color: var(--lullaboo-blue) !important;
}

/* Loading Animation with Lullaboo Colors */
.btn.loading::after {
    border-color: var(--lullaboo-blue) !important;
    border-top-color: transparent !important;
}

/* Enhanced Admin Header */
.admin-header {
    background: linear-gradient(135deg, var(--lullaboo-blue) 0%, var(--secondary-color) 100%) !important;
}

/* Results Header Branding */
 