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

:root {
    --bg-gradient-light: linear-gradient(135deg, rgba(144, 238, 144, 0.8), rgba(152, 251, 152, 0.6), rgba(173, 255, 47, 0.7));
    --bg-gradient-dark: linear-gradient(135deg, rgba(144, 238, 144, 0.3), rgba(152, 251, 152, 0.2), rgba(173, 255, 47, 0.25));
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --card-bg-dark: rgba(30, 30, 30, 0.95);
    --text-light: #333333;
    --text-dark: #ffffff;
    --input-bg-light: rgba(255, 255, 255, 0.9);
    --input-bg-dark: rgba(60, 60, 60, 0.9);
    --input-border-light: rgba(144, 238, 144, 0.5);
    --input-border-dark: rgba(144, 238, 144, 0.3);
    --button-bg: linear-gradient(45deg, #90EE90, #98FB98);
    --button-hover: linear-gradient(45deg, #7FDD7F, #87EA87);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body.light-mode {
    background: var(--bg-gradient-light);
    color: var(--text-light);
}

body.dark-mode {
    background: var(--bg-gradient-dark);
    background-color: #1a1a1a;
    color: var(--text-dark);
}

/* Animated background elements */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    background: rgba(144, 238, 144, 0.3);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    background: rgba(152, 251, 152, 0.3);
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 80px;
    height: 80px;
    background: rgba(173, 255, 47, 0.3);
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-20px) rotate(180deg); }
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.light-mode .theme-toggle {
    border-color: var(--text-light);
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.2);
}

.dark-mode .theme-toggle {
    border-color: var(--text-dark);
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(144, 238, 144, 0.3);
}

.login-container {
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.light-mode .login-container {
    background: var(--card-bg-light);
    box-shadow: 0 20px 40px var(--shadow-light);
}

.dark-mode .login-container {
    background: var(--card-bg-dark);
    box-shadow: 0 20px 40px var(--shadow-dark);
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #90EE90, #98FB98, #ADFF2F);
    border-radius: 20px 20px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #90EE90, #ADFF2F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    opacity: 0.7;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.light-mode .form-group input {
    background: var(--input-bg-light);
    border-color: var(--input-border-light);
    color: var(--text-light);
}

.dark-mode .form-group input {
    background: var(--input-bg-dark);
    border-color: var(--input-border-dark);
    color: var(--text-dark);
}

.form-group input:focus {
    outline: none;
    border-color: #90EE90;
    box-shadow: 0 0 20px rgba(144, 238, 144, 0.3);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    opacity: 0.5;
}

.login-button {
    width: 100%;
    background: var(--button-bg);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(144, 238, 144, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}

.forgot-password a {
    color: #90EE90;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(144, 238, 144, 0.3), transparent);
}

.divider span {
    padding: 0 20px;
    opacity: 0.6;
    font-size: 0.9em;
}

.light-mode .divider span {
    background: var(--card-bg-light);
}

.dark-mode .divider span {
    background: var(--card-bg-dark);
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid rgba(144, 238, 144, 0.3);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.light-mode .social-btn {
    color: var(--text-light);
}

.dark-mode .social-btn {
    color: var(--text-dark);
}

.social-btn:hover {
    border-color: #90EE90;
    background: rgba(144, 238, 144, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
    }

    .theme-toggle {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 14px;
    }
}

