/* Global Styles */
:root {
    --primary-color: #7559da;
    --secondary-color: #58cc02;
    --error-color: #ff4b4b;
    --text-color: #3c3c3c;
    --light-bg: #f7f7f7;
    --white: #ffffff;
    --border-color: #e5e5e5;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container Styles */
.container {
    width: 100%;
    max-width: 450px;
}

.form-container {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px var(--shadow-color);
}

/* Typography */
h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-align: center;
}

h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: var(--primary-color);
    outline: none;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 8px;
    cursor: pointer;
}

.terms {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
}

.terms input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 4px;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* Button Styles */
.btn-primary {
    display: block;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #4aac00;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Footer Styles */
.form-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Additional Elements */
.forgot-password {
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.error-message {
    background-color: rgba(255, 75, 75, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Header and Navigation */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #555;
    text-decoration: none;
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
    color: #333;
}

.btn {
    padding: 8px 15px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.main-container {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 30px;
    padding: 0 20px;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .form-container {
        padding: 24px;
        border-radius: 12px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    .btn-primary {
        font-size: 16px;
        padding: 12px;
    }
    
    .header {
        padding: 10px 15px;
        flex-direction: column;
    }
    
    nav {
        margin: 10px 0;
        width: 100%;
        justify-content: space-between;
    }
    
    .main-container {
        margin-top: 120px;
    }
}
