:root {
    --raisin-black: #29292Bff;
    --onyx: #414244ff;
    --battleship-gray: #929292ff;
    --penn-red: #A20D0Eff;
    --eerie-black: #1C1D1Fff;
    
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #333333;
    
    --success: #28a745;
    --error: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    
    --border-radius: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--white);
    background: linear-gradient(135deg, var(--raisin-black) 0%, var(--eerie-black) 100%);
    min-height: 100vh;
    font-size: 16px;
}

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

/* Header Styles */
header {
    padding: 1rem 0;
    background: white;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white);
    transition: all 0.3s ease;
}

.logo-img {
    width: 130px;
    height: 90px;
    transition: all 0.3s ease;
}

.logo-text {
    font-weight: 800;
    background: linear-gradient(135deg, var(--white), var(--battleship-gray));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo:hover .logo-img {
    transform: rotate(10deg) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.logo:hover .logo-text {
    background: linear-gradient(135deg, var(--penn-red), #c21818);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

.nav-links a:hover {
    color: var(--penn-red);
    background: rgba(255, 255, 255, 0.1);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--penn-red);
    transition: all 0.3s ease;
}

.nav-links a:hover::after {
    width: 80%;
    left: 10%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

/* Enhanced Form Styles */
.form-container {
    max-width: 450px;
    margin: 150px auto 0;
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    color: var(--raisin-black);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--penn-red), #c21818, var(--penn-red));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.form-container h2 {
    text-align: center;
    color: var(--raisin-black);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: 800;
    position: relative;
}

.form-container p {
    text-align: center;
    color: var(--battleship-gray);
    margin-bottom: 2.5rem;
    font-size: 1rem;
    font-weight: 400;
}

/* Form Groups */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group.has-icon {
    position: relative;
}

/* Labels */
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--raisin-black);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

/* Input Fields */
.form-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 400;
    color: var(--raisin-black);
    background: var(--white);
    transition: all 0.3s ease;
    outline: none;
    position: relative;
    z-index: 1;
}

.form-group input::placeholder {
    color: var(--battleship-gray);
    font-weight: 400;
    opacity: 0.7;
}

.form-group input:focus {
    border-color: var(--penn-red);
    box-shadow: 0 0 0 3px rgba(162, 13, 14, 0.1);
    background: var(--white);
}

.form-group input:focus + .input-icon {
    color: var(--penn-red);
    transform: scale(1.1);
}

.form-group input:focus ~ label {
    color: var(--penn-red);
}

.form-group input:valid {
    border-color: var(--success);
}

.form-group input:invalid:not(:focus):not(:placeholder-shown) {
    border-color: var(--error);
}

/* Input Icons */
.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--battleship-gray);
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

/* Password Container */
.password-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-container input {
    padding-right: 3.5rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--battleship-gray);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--penn-red);
    background: rgba(162, 13, 14, 0.1);
}

.password-toggle:focus {
    outline: 2px solid var(--penn-red);
    outline-offset: 2px;
}

/* Error Messages */
.error-text {
    display: none;
    color: var(--error);
    font-size: 0.75rem;
    margin-top: 0.5rem;
    font-weight: 500;
    padding-left: 0.5rem;
}

.form-group.error .error-text {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.form-group.error input {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group.error .input-icon {
    color: var(--error);
}

/* Success State */
.form-group.success input {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group.success .input-icon {
    color: var(--success);
}

/* Error/Warning Messages */
.error-message,
.security-warning {
    display: none;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    animation: fadeInUp 0.3s ease-out;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: var(--error);
}

.security-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #856404;
}

.error-message.show,
.security-warning.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Submit Button */
.form-container .btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--penn-red), #c21818);
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.form-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.form-container .btn:active {
    transform: translateY(0);
}

.form-container .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading State */
.btn.loading {
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.5rem;
    height: 1.5rem;
    margin-top: -0.75rem;
    margin-left: -0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--medium-gray);
}

.signup-link p {
    color: var(--battleship-gray);
    font-size: 0.875rem;
    margin: 0;
}

.signup-link a {
    color: var(--penn-red);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.signup-link a:hover {
    color: #c21818;
    text-decoration: underline;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--battleship-gray);
    transition: color 0.3s ease;
}

.step.active {
    color: var(--penn-red);
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--medium-gray);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: var(--penn-red);
    box-shadow: 0 0 0 4px rgba(162, 13, 14, 0.2);
}

.step.completed .step-number {
    background: var(--success);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 800;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius-xl);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn:active {
    transform: translateY(-1px);
}

.stats {
    padding: 80px 0;
    text-align: center;
    color: black;
    background: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    padding: 2rem 1rem;
    background: #333333;    
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: white;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--penn-red);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--eerie-black);
    color: var(--white);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet Responsive - 1024px and down */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .form-container {
        max-width: 500px;
        padding: 2rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .logo-img {
        width: 110px;
        height: 75px;
    }
}

/* Mobile Responsive - 768px and down */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--border-radius) var(--border-radius);
        padding: 1rem 0;
        display: none;
        animation: slideDown 0.3s ease-out;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        border-radius: 0;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .nav-links a:last-child {
        border-bottom: none;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .nav-links a:hover {
        background: rgba(162, 13, 14, 0.1);
        color: var(--penn-red);
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    /* Form Specific Mobile Styles */
    .form-container {
        margin: 120px auto 0;
        padding: 2rem;
        max-width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
    
    .form-container h2 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .form-container p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .form-group {
        margin-bottom: 1.25rem;
    }
    
    .form-group input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 1rem;
    }
    
    .input-icon {
        left: 0.875rem;
        font-size: 0.875rem;
    }
    
    .password-toggle {
        right: 0.875rem;
        padding: 0.5rem;
    }
    
    .form-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }
    
    .error-text {
        font-size: 0.7rem;
        margin-top: 0.4rem;
    }
    
    .error-message,
    .security-warning {
        padding: 0.875rem;
        font-size: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .form-container .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
    
    .signup-link {
        margin-top: 1.75rem;
        padding-top: 1.25rem;
    }
    
    .signup-link p {
        font-size: 0.8rem;
    }
    
    .step-indicator {
        gap: 1rem;
        padding: 0.75rem 0;
        margin-bottom: 1.75rem;
    }
    
    .step {
        font-size: 0.75rem;
        gap: 0.4rem;
    }
    
    .step-number {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.65rem;
    }
    
    .logo-img {
        width: 100px;
        height: 65px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .form-container {
        margin: 100px auto 20px;
        padding: 1.5rem;
    }
    
    .form-row {
        margin-bottom: 0.75rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .step-indicator {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .checkbox-group {
        margin: 1rem 0;
    }
    
    .login-link {
        margin-top: 1.5rem;
        padding-top: 0.75rem;
    }
}
/* Small Mobile - 480px and down */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .logo-img {
        width: 90px;
        height: 55px;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 0.5rem;
    }
    
    /* Form Specific Small Mobile */
    .form-container {
        margin: 100px auto 0;
        padding: 1.5rem;
        max-width: 98%;
        margin-left: 1%;
        margin-right: 1%;
        border-radius: var(--border-radius-lg);
    }
    
    .form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .form-container p {
        font-size: 0.9rem;
        margin-bottom: 1.75rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 0.8rem;
    }
    
    .password-toggle {
        right: 0.75rem;
        padding: 0.4rem;
        font-size: 0.85rem;
    }
    
    .password-container input {
        padding-right: 3rem;
    }
    
    .form-group label {
        font-size: 0.75rem;
        margin-bottom: 0.35rem;
    }
    
    .error-text {
        font-size: 0.65rem;
        margin-top: 0.35rem;
    }
    
    .error-message,
    .security-warning {
        padding: 0.75rem;
        font-size: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .form-container .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 0.75rem;
    }
    
    .signup-link {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .signup-link p {
        font-size: 0.75rem;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        margin-bottom: 1.5rem;
        padding: 0.5rem 0;
    }
    
    .step {
        font-size: 0.7rem;
    }
    
    .step-number {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.6rem;
    }
}

/* Extra Small Mobile - 360px and down */
@media (max-width: 360px) {
    .form-container {
        margin: 90px auto 0;
        padding: 1.25rem;
    }
    
    .form-container h2 {
        font-size: 1.35rem;
    }
    
    .form-group input {
        padding: 0.7rem 0.7rem 0.7rem 2.25rem;
        font-size: 0.9rem;
    }
    
    .input-icon {
        left: 0.7rem;
        font-size: 0.75rem;
    }
    
    .password-toggle {
        right: 0.7rem;
        font-size: 0.8rem;
    }
    
    .form-container .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .logo-img {
        width: 80px;
        height: 50px;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .form-container {
        margin: 80px auto 20px;
        padding: 1.5rem;
    }
    
    .form-container h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .form-container p {
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .step-indicator {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }
    
    .signup-link {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}