body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    color: #333;
    overflow: hidden;
}

.login-wrapper {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
    padding: 40px;
}

.left-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out;
}

.left-panel p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease-out;
}

.left-panel img {
    max-width: 80%;
    max-height: 80%;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.right-panel {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Old container styles removed, now using login-wrapper */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}
.tab {
    display: flex;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 5px;
}
.tab button {
    flex: 1;
    padding: 12px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.tab button.active {
    background-color: #667eea;
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}
.form-container {
    display: none;
}
.form-container.active {
    display: block;
}
h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 300;
}
input[type="text"], input[type="email"], input[type="password"] {
    width: 100%;
    padding: 15px 15px 15px 45px;
    margin: 10px 0;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    box-sizing: border-box;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
}

input[type="text"]:not(:placeholder-shown) + label,
input[type="email"]:not(:placeholder-shown) + label,
input[type="password"]:not(:placeholder-shown) + label,
input[type="text"]:focus + label,
input[type="email"]:focus + label,
input[type="password"]:focus + label {
    top: -10px;
    left: 40px;
    font-size: 12px;
    color: #667eea;
    background: white;
    padding: 0 5px;
}

.input-container {
    position: relative;
    margin: 15px 0;
}

.icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    z-index: 1;
    transition: color 0.3s ease;
}

.input-container label {
    position: absolute;
    top: 15px;
    left: 45px;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="text"]:focus ~ .icon,
input[type="email"]:focus ~ .icon,
input[type="password"]:focus ~ .icon {
    color: #667eea;
}
.checkbox-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
}
.checkbox-container input {
    width: auto;
    margin-right: 10px;
    accent-color: #667eea;
}
.checkbox-container label {
    font-size: 14px;
    color: #666;
}
.forgot-password {
    text-align: center;
    margin: 15px 0;
}
.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.forgot-password a:hover {
    text-decoration: underline;
}

/* Spinner for loading */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Focused input container */
.focused input {
    transform: scale(1.02);
}

/* Enhanced animations */
.form-container {
    transition: opacity 0.3s ease;
}

.social-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-btn:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.social-login {
    margin: 20px 0;
    text-align: center;
}
.social-login p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}
.social-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.social-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: transform 0.2s ease;
}
.social-btn:hover {
    transform: translateY(-2px);
}
.google-btn {
    background-color: #db4437;
    color: white;
}
.facebook-btn {
    background-color: #4267B2;
    color: white;
}
.twitter-btn {
    background-color: #1DA1F2;
    color: white;
}
button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.error {
    color: #e74c3c;
    text-align: center;
    margin-bottom: 15px;
    background-color: #fdf2f2;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}
.success {
    color: #27ae60;
    text-align: center;
    margin-bottom: 15px;
    background-color: #d5f4e6;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}
.message {
    text-align: center;
    margin: 15px 0;
    background-color: #d5f4e6;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    color: #27ae60;
}
.back-link {
    text-align: center;
    margin-top: 20px;
}
.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.back-link a:hover {
    text-decoration: underline;
}

/* Calendar Styles */
.calendar {
    max-width: 100%;
}
.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}
.day-name {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    background: #e9ecef;
    border: 1px solid #dee2e6;
}
.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    border: 1px solid #dee2e6;
    background: #dee2e6;
}
.calendar-day {
    background: white;
    min-height: 80px;
    padding: 5px;
    position: relative;
    border: 1px solid #dee2e6;
}
.calendar-day.other-month {
    background: #f8f9fa;
    color: #6c757d;
}
.calendar-day.today {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}
.calendar-day.has-uploads {
    background: #f0f8ff;
}
.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}
.upload-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #dc3545;
    cursor: pointer;
}
.upload-indicator:hover {
    color: #b02a37;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        height: auto;
        width: 95%;
    }
    .left-panel {
        display: none; /* Hide image on mobile */
    }
    .right-panel {
        padding: 30px 20px;
    }
    .tab {
        margin-bottom: 20px;
    }
    .tab button {
        padding: 10px;
        font-size: 14px;
    }
    h2 {
        margin-bottom: 20px;
        font-size: 24px;
    }
    .input-container input {
        padding: 12px;
        font-size: 14px;
    }
    button {
        padding: 12px;
        font-size: 14px;
    }
    .social-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .social-btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    .container {
        width: 100%;
        padding: 20px 15px;
        border-radius: 10px;
        margin: 10px;
    }
    .tab {
        flex-direction: column;
        margin-bottom: 15px;
    }
    .tab button {
        padding: 8px;
        font-size: 13px;
    }
    h2 {
        margin-bottom: 15px;
        font-size: 20px;
    }
    input[type="text"], input[type="email"], input[type="password"] {
        padding: 10px;
        font-size: 13px;
        margin: 8px 0;
    }
    button {
        padding: 10px;
        font-size: 13px;
    }
    .social-login p {
        font-size: 12px;
    }
    .social-btn {
        padding: 8px;
        font-size: 13px;
    }
    .checkbox-container label {
        font-size: 12px;
    }
    .forgot-password a, .back-link a {
        font-size: 12px;
    }
}