/* 
   AWS Certification System - Home Page Styles
   Author: A. Drzewiecki
   Version: 1.0
*/

:root {
    --primary: #4361ee;
    --primary-hover: #3a56d4;
    --secondary: #2ec4b6;
    --danger: #ef476f;
    --success: #06d6a0;
    --warning: #ffd166;
    --dark: #1a1a2e;
    --darker: #16213e;
    --light: #e9ecef;
    --text: #f8f9fa;
    --text-dark: #212529;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --transition: all 0.2s ease;
}

.main-header {
    text-align: center;
    padding: 2rem 1rem;
    background-color: rgba(22, 33, 62, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo h1 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.logo h1 span {
    color: var(--primary);
}

.logo p {
    color: var(--light);
    font-size: 1.1rem;
    opacity: 0.9;
}

.main-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.info-section {
    flex: 6;
    padding: 2rem;
    background-color: rgba(26, 26, 46, 0.8);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-right: 2px;
    display: flex;
    flex-direction: column;
}

.auth-section {
    flex: 4;
    padding: 2rem;
    background-color: rgba(30, 35, 55, 0.9);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    box-shadow: var(--box-shadow);
}

.info-section h2, 
.auth-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
    text-align: center;
}

.info-section h2:after, 
.auth-section h2:after {
    content: "";
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.info-content {
    padding: 1rem 0;
    flex: 1;
}

.exam-stats {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-card {
    flex: 1;
    min-width: 200px;
    background-color: rgba(40, 45, 65, 0.5);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 4px solid var(--primary);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.8rem 0;
}

.stat-label {
    color: var(--light);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.exam-list {
    margin: 2rem 0;
}

.exam-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    background-color: rgba(40, 45, 65, 0.5);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.exam-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
}

.exam-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.exam-icon i {
    font-size: 1.8rem;
    color: var(--primary);
}

.exam-details {
    flex: 1;
}

.exam-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: white;
}

.exam-desc {
    font-size: 0.9rem;
    color: var(--light);
    opacity: 0.9;
    line-height: 1.5;
}

.exam-questions {
    background-color: rgba(67, 97, 238, 0.15);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    margin-left: auto;
    margin-right: 1rem;
    flex-shrink: 0;
}

.system-description {
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.system-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature {
    text-align: center;
    padding: 1.2rem;
    background-color: rgba(40, 45, 65, 0.5);
    border-radius: var(--border-radius);
}

.feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

/* Auth section styles */
.auth-form {
    padding: 1rem 0;
    max-width: 320px;
    margin: 0 auto;
}

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

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 500;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(67, 97, 238, 0.3);
    outline: none;
}

.submit-button {
    width: 100%;
    max-width: 200px;
    padding: 0.8rem;
    border: none;
    background-color: var(--primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin: 1rem auto;
    display: block;
}

.submit-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.error-message {
    background-color: rgba(239, 71, 111, 0.2);
    color: #ff8fa3;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    font-weight: 500;
    text-align: center;
}

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--light);
}

.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

.section-title {
    margin-top: 2rem; 
    font-size: 1.4rem; 
    color: var(--primary);
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(22, 33, 62, 0.7);
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    color: var(--light);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive styles */
@media (max-width: 1200px) {
    .main-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .info-section,
    .auth-section {
        border-radius: var(--border-radius);
        margin-right: 0;
        margin-bottom: 2rem;
        width: 100%;
    }
    
    .info-section {
        margin-bottom: 1rem;
    }
    
    .exam-stats {
        flex-direction: column;
    }
    
    .stat-card {
        min-width: 100%;
    }
    
    .auth-form {
        max-width: 400px;
    }
}