/* SchoolERP Platform Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #1e293b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: white;
}

.features h2,
.how-it-works h2,
.pricing h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--light);
    padding: 2rem;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Pricing Section */
.pricing {
    padding: 4rem 0;
    background: white;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan {
    background: var(--light);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border);
    text-align: center;
    transition: all 0.3s;
}

.plan:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.plan.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.plan h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 2rem;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 1rem;
}

.plan ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.plan li {
    padding: 0.5rem 0;
    color: var(--secondary);
    border-bottom: 1px solid var(--border);
}

.plan li:last-child {
    border-bottom: none;
}

.plan button {
    width: 100%;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 2rem auto;
}

.form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.form-wrapper h1 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.subtitle,
.section-help {
    color: var(--secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea {
    resize: vertical;
}

small {
    display: block;
    margin-top: 0.25rem;
    color: var(--secondary);
    font-size: 0.85rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: normal;
}

.checkbox input {
    width: auto;
    cursor: pointer;
}

.checkbox a {
    color: var(--primary);
}

/* Messages */
.message {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    display: none;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
    border-left: 4px solid var(--success);
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
    border-left: 4px solid var(--danger);
}

/* Links */
.login-link,
.register-link {
    text-align: center;
    color: var(--secondary);
    margin-top: 1rem;
}

.login-link a,
.register-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

/* Plan Selector */
.plan-selector {
    display: grid;
    gap: 1rem;
}

.plan-option {
    cursor: pointer;
}

.plan-option input {
    display: none;
}

.plan-card {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.plan-option input:checked ~ .plan-card {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.02));
}

.plan-card h4 {
    margin-bottom: 1rem;
}

.plan-card ul {
    list-style: none;
    font-size: 0.9rem;
}

.plan-card li {
    padding: 0.25rem 0;
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .form-wrapper {
        padding: 1rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
}
