/* Public Pages Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-bg: #f8f9fa;
    --dark-text: #2c3e50;
    --light-text: #6c757d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.public-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.session-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Main Content */
.public-main {
    flex: 1;
    padding: 3rem 0;
}

/* Login Form Styles */
.login-wrapper {
    max-width: 550px;
    margin: 0 auto;
}

/* Session Info Card */
.session-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
    color: white;
    animation: slideDown 0.5s ease-out;
}

.session-info-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.session-info-header i {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-info-header h3 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.session-message {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.session-message i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.session-message p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.login-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.login-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.login-icon i {
    font-size: 2rem;
}

.login-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.login-header p {
    position: relative;
    z-index: 1;
    opacity: 0.9;
}

.login-body {
    padding: 2.5rem 2rem;
}

/* Modern Form Group */
.form-group-modern {
    position: relative;
    margin-bottom: 2rem;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 55px;
    height: 58px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 0 12px 12px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.form-control-modern {
    padding-left: 70px !important;
    padding-right: 15px !important;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    height: 58px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: right;
}

.form-control-modern:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(52, 152, 219, 0.15);
    padding-left: 70px !important;
    padding-right: 15px !important;
}

.form-floating label {
    padding-left: 0;
    padding-right: 0;
    right: 15px;
    left: 70px;
    width: auto;
    max-width: calc(100% - 85px);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    color: white;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(-1px);
}

.btn-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-loader {
    display: none;
}

/* Login Footer */
.login-footer {
    background: #f8f9fa;
    padding: 1.25rem 2rem;
    text-align: center;
    color: var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.login-footer i {
    color: var(--success-color);
    font-size: 1.1rem;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: shake 0.5s ease-in-out;
}

.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(238, 90, 111, 0.3);
}

.alert i {
    font-size: 1.25rem;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Results Page Styles */
.results-container {
    max-width: 800px;
    margin: 0 auto;
}

.results-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

.results-header {
    background: linear-gradient(135deg, var(--success-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.results-body {
    padding: 2rem;
}

.column-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.column-label {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

.column-value {
    color: var(--light-text);
    font-size: 1.1rem;
}

.btn-download {
    background: linear-gradient(135deg, var(--success-color) 0%, #2ecc71 100%);
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    color: white;
}

.status-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Footer Styles */
.public-footer {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .session-title {
        font-size: 2rem;
    }
    
    .public-main {
        padding: 2rem 0;
    }
    
    .login-wrapper {
        margin: 0 1rem;
    }
    
    .session-info-card {
        padding: 1.5rem;
    }
    
    .session-info-header {
        flex-direction: column;
        text-align: center;
    }
    
    .session-info-header h3 {
        font-size: 1.5rem;
    }
    
    .login-header, .login-body {
        padding: 2rem 1.5rem;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
    }
    
    .login-icon i {
        font-size: 1.75rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .results-body {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .session-title {
        font-size: 1.5rem;
    }
    
    .session-info-header i {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .session-info-header h3 {
        font-size: 1.3rem;
    }
    
    .session-message {
        padding: 1rem;
    }
    
    .session-message p {
        font-size: 1rem;
    }
    
    .login-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .login-icon i {
        font-size: 1.5rem;
    }
    
    .login-header h2 {
        font-size: 1.6rem;
    }
    
    .login-header, .login-body, .login-footer {
        padding: 1.5rem;
    }
    
    .input-icon {
        width: 50px;
        height: 54px;
        font-size: 1.1rem;
    }
    
    .form-control-modern {
        padding-left: 65px !important;
        padding-right: 15px !important;
        height: 54px;
        font-size: 1rem;
    }
    
    .form-floating label {
        padding-left: 0;
        padding-right: 0;
        font-size: 0.95rem;
        right: 15px;
        left: 65px;
        max-width: calc(100% - 80px);
    }
    
    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 1.1rem;
    }
    
    .login-footer {
        font-size: 0.85rem;
        padding: 1rem;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.results-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
