* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #00adb5 0%, #007a82 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

.form-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 173, 181, 0.2);
}

.form-box {
    padding: 50px 40px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.form-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #00adb5, #00c8d0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 15px 35px rgba(0, 173, 181, 0.45);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.form-icon i {
    font-size: 28px;
    color: white;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #00adb5, #007a82);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #666;
    font-size: 16px;
    margin-bottom: 35px;
    font-weight: 400;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #00adb5;
    font-size: 18px;
    z-index: 2;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 18px 18px 18px 50px;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    outline: none;
    color: #333;
}

input::placeholder {
    color: #aab0b8;
}

input:focus {
    border-color: #00adb5;
    box-shadow: 0 0 0 3px rgba(0, 173, 181, 0.15);
    background: white;
    transform: translateY(-2px);
}

.login-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #00adb5, #00c8d0);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 173, 181, 0.45);
    background: linear-gradient(135deg, #009ea6, #00adb5);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

.form-links {
    margin-top: 30px;
}

.form-link {
    display: block;
    color: #666;
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.form-link:hover {
    color: #00adb5;
}

.signup-link {
    color: #00adb5;
    font-weight: 500;
}

.signup-link:hover {
    color: #007a82;
}

.form-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 173, 181, 0.1), rgba(0, 173, 181, 0.04));
    z-index: 1;
}

.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 173, 181, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 173, 181, 0.12) 0%, transparent 50%);
    opacity: 0.4;
}

.form-box.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-10px); }
    75%       { transform: translateX(10px); }
}

/* Responsive Design */
@media (max-width: 480px) {
    .form-wrapper {
        padding: 15px;
        margin: 20px;
    }

    .form-box {
        padding: 40px 25px;
    }

    .form-bg {
        display: none;
    }

    h2 {
        font-size: 24px;
    }
}

@media (max-width: 360px) {
    .form-box {
        padding: 35px 20px;
    }
}
