:root {
    --primary-color: #4B0082;
    --text-primary: #333;
    --text-secondary: #666;
    --background-light: rgba(255, 255, 255, 0.9);
    --glass-background: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --error-color: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    transition: background 1s ease;
}

/* Time-based backgrounds */
body.morning {
    background: linear-gradient(135deg, #FF9A9E 0%, #FAD0C4 99%, #FAD0C4 100%);
}

body.afternoon {
    background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%);
}

body.evening {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

body.night {
    background: linear-gradient(135deg, #001B3D 0%, #0F2B4C 100%);
}

/* Background Animations */
.time-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Morning Animation */
body.morning .animation-overlay::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #FFD700 0%, rgba(255, 215, 0, 0) 70%);
    border-radius: 50%;
    animation: sunrise 3s ease-out forwards;
}

@keyframes sunrise {
    from {
        transform: translate(-75px, 100vh);
        opacity: 0;
    }
    to {
        transform: translate(100px, 100px);
        opacity: 1;
    }
}

/* Afternoon Animation */
body.afternoon .animation-overlay {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="white" fill-opacity="0.3"/></svg>') repeat;
    animation: clouds 60s linear infinite;
}

@keyframes clouds {
    from { background-position: 0 0; }
    to { background-position: 1000px 0; }
}

/* Evening Animation */
body.evening .animation-overlay {
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 112, 66, 0.3) 100%);
    animation: sunset 3s ease-in forwards;
}

@keyframes sunset {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Night Animation */
body.night .animation-overlay {
    background: radial-gradient(1px 1px at random(100) random(100), white 50%, transparent 50%);
    animation: twinkle 2s ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* Container Styles */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Register Card Styles */
.register-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass-background);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px var(--glass-shadow);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    max-width: 180px;
    height: auto;
}

.greeting-section {
    text-align: center;
    margin-bottom: 30px;
}

.time-greeting {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.greeting-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form Styles */
.register-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
}

.input-icon .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
}

.form-group input {
    width: 100%;
    padding: 15px 45px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--background-light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(75, 0, 130, 0.1);
}

.password-requirements {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 15px;
}

.register-button {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.register-button:hover {
    background: #5c0099;
    transform: translateY(-2px);
}

.register-button:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: var(--error-color);
    text-align: center;
    margin-top: 15px;
    font-size: 0.9rem;
}

.login-link {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 20px;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

/* Success Animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-checkmark {
    color: #4BB543;
    font-size: 3rem;
    animation: checkmark 0.5s ease-in-out forwards;
}

/* Responsive Design */
@media (max-width: 480px) {
    .register-card {
        padding: 30px 20px;
    }

    .time-greeting {
        font-size: 1.5rem;
    }

    .form-group input {
        padding: 12px 40px;
    }
} 