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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #699b90;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Index page layout */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-left {
    flex: 1;
    text-align: center;
    color: #fff;
}

.content-right {
    flex: 0 0 400px;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.features-section {
    background: #d8e4e2;
    padding: 80px 20px;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.features-title {
    text-align: center;
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 20px;
}

.features-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.feature-description {
    color: #000;
    line-height: 1.6;
}

.main-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Header Styles */
.header-section {
    background: #375650;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-logo {
    width: 160px;
    height: 100px;
    border-radius: 6px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px;
}

.header-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.header-company-name {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.header-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    position: relative;
}

.form-header {
    background: #375650;
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.form-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.form-container {
    padding: 40px 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #699b90;
    background: white;
    box-shadow: 0 0 0 3px rgba(105, 155, 144, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #699b90 0%, #375650 100%);
    color: white;
    margin-bottom: 15px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(105, 155, 144, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #699b90;
    border: 2px solid #699b90;
}

.btn-secondary:hover {
    background: #699b90;
    color: white;
}

.form-links {
    text-align: center;
    margin-top: 20px;
}

.form-links a {
    color: #699b90;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-links a:hover {
    color: #d78462;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

.toggle-form {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.toggle-form a {
    color: #699b90;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: #d78462;
}

/* Responsive design */
/* Mobile phones (320px - 480px) */
@media (max-width: 480px) {
    .content-wrapper {
        padding: 10px;
    }
    
    .container {
        margin: 5px;
        border-radius: 15px;
        max-width: 100%;
    }
    
    .header-section {
        padding: 10px 15px;
    }
    
    .header-content {
        gap: 15px;
    }
    
    .header-logo {
        width: 130px;
        height: 80px;
    }
    
    .header-company-name {
        font-size: 1.4rem;
    }
    
    .header-tagline {
        font-size: 0.8rem;
    }
    
    .form-header {
        padding: 25px 15px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Small tablets and large phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        max-width: 450px;
        margin: 20px auto;
    }
    
    .header-logo {
        width: 150px;
        height: 90px;
    }
    
    .header-company-name {
        font-size: 1.6rem;
    }
    
    .form-header {
        padding: 35px 25px;
    }
    
    .form-container {
        padding: 35px 25px;
    }
}

/* iPads and tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        max-width: 500px;
        margin: 30px auto;
    }
    
    .header-logo {
        width: 170px;
        height: 100px;
    }
    
    .header-company-name {
        font-size: 1.7rem;
    }
    
    .form-header {
        padding: 40px 30px;
    }
    
    .form-container {
        padding: 40px 30px;
    }
    
    .form-row {
        gap: 20px;
    }
}

/* Large screens (1025px+) */
@media (min-width: 1025px) {
    .container {
        max-width: 550px;
    }
    
    .form-header {
        padding: 45px 35px;
    }
    
    .form-container {
        padding: 45px 35px;
    }
}

/* Index responsive tweaks */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .content-right {
        flex: 1;
        width: 100%;
        max-width: 400px;
    }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #699b90;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Login form on index page */
.login-form-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    margin: 20px 20px 20px 0px;
}

.login-form-title {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.login-form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.login-form-group input:focus {
    outline: none;
    border-color: #699b90;
    background: white;
    box-shadow: 0 0 0 3px rgba(105, 155, 144, 0.1);
}

.login-form-links {
    text-align: center;
    margin-top: 15px;
}

.login-form-links a {
    color: #699b90;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-form-links a:hover {
    color: #d78462;
}

.login-toggle {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.login-toggle a {
    color: #699b90;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-toggle a:hover {
    color: #d78462;
}
