:root {
    --primary: #00bcd4;
    --primary-light: #33c9dc;
    --primary-dark: #008fa1;
    --background: #121212;
    --card-bg: rgba(25, 28, 32, 0.85);
    --text: #f5f5f5;
    --text-secondary: #c0c0c0;
    --border: #444;
    --error: #ff5555;
    --success: #4CAF50;
    --input-bg: rgba(30, 35, 40, 0.7);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-content p {
    margin-bottom: 15px;
    color: #a0a0a0;
}
.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    transform: translateY(-5px);
    background-color: rgba(0, 188, 212, 0.3);
}

.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text);
    background-color: var(--background);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background-color: var(--background);
}

.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.form-card {
    width: 100%;
    max-width: 500px;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.4);
}

.header {
    text-align: center;
    margin-bottom: 2rem;
}

.header h1 {
    font-family: 'Share Tech Mono', monospace;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: 'Share Tech Mono', monospace;
    letter-spacing: 0.5px;
}

input, select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.form-toggle {
    display: flex;
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-btn {
    flex: 1;
    padding: 14px;
    background-color: rgba(30, 35, 40, 0.6);
    border: none;
    cursor: pointer;
    font-weight: 500;
    font-family: 'Share Tech Mono', monospace;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.toggle-btn.active {
    background-color: var(--primary);
    color: var(--background);
    font-weight: 700;
}

.radio-group {
    display: flex;
    gap: 1.75rem;
    margin-top: 0.75rem;
}

.radio-group input[type="radio"] {
    display: none;
}

.radio-group label {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    display: inline-block;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0;
}

.radio-group label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.radio-group input[type="radio"]:checked + label:before {
    border-color: var(--primary);
    background: radial-gradient(circle, var(--primary) 0%, var(--primary) 40%, transparent 50%);
    box-shadow: 0 0 8px rgba(0, 188, 212, 0.4);
}

.form-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
}

.form-section.active {
    display: block;
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
    font-weight: 400;
    padding-left: 5px;
}

input.error, select.error {
    border: 1px solid var(--error);
    box-shadow: 0 0 0 2px rgba(255, 85, 85, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn.login {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.btn.login:hover {
    background: rgba(0, 188, 212, 0.15);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.2);
    transform: translateY(-2px);
}

.btn.signup {
    background: var(--primary);
    color: var(--background);
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.signup:hover {
    background: var(--primary-light);
    box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .form-card {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .form-card {
        padding: 1.25rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }

}



/* Focus styles for accessibility */
input:focus, select:focus, button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.25);
}

/* Custom date input styling */
input[type="date"] {
    position: relative;
    color: var(--text);
}

/* Success styling */
.success-icon {
    color: var(--success);
    margin-right: 8px;
}


/* Additional animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 188, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 188, 212, 0);
    }
}


#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1; /* Make sure particles appear in the background */
    background-color: #1e1e1e;
}


