* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background-color 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    cursor: pointer;
}

.logo h1 {
    color: #22c55e;
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.logo h1:hover {
    transform: scale(1.05);
}

.logo p {
    color: #4b5563;
    margin-top: 10px;
}

.card-container {
    display: flex;
    width: 100%;
    gap: 30px;
}

.info-panel {
    flex: 1;
    background: linear-gradient(135deg, #eef6f0 0%, #d1fae5 100%);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    order: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.info-panel h2 {
    color: #1f2937;
    margin-bottom: 20px;
    font-size: 28px;
}

.info-panel ul {
    list-style: none;
    margin-bottom: 30px;
}

.info-panel li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #4b5563;
}

.info-panel i {
    color: #22c55e;
    margin-right: 10px;
    font-size: 18px;
}

.form-panel {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    order: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

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

.form-header h2 {
    color: #1f2937;
    margin-bottom: 10px;
}

.form-header p {
    color: #6b7280;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 15px 50px 15px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: #22c55e;
    background-color: #f0fdf4;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember input {
    width: 16px;
    height: 16px;
    accent-color: #22c55e;
    transition: all 0.3s ease;
}

.remember label {
    color: #6b7280;
    font-size: 14px;
}

.forgot-password {
    color: #22c55e;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.forgot-password:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

.btn {
    width: 100%;
    padding: 15px;
    background: #22c55e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(34, 197, 94, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(34, 197, 94, 0.3);
}

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

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(10, 10);
        opacity: 0.3;
    }
    100% {
        transform: scale(30, 30);
        opacity: 0;
    }
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #6b7280;
}

.form-divider::before,
.form-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.form-divider span {
    padding: 0 15px;
}

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

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer p {
    color: #6b7280;
}

.toggle-form {
    color: #22c55e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.toggle-form:hover {
    text-decoration: underline;
    transform: translateX(5px);
}

/* Error and Success Messages */
.error-message {
    display: block;
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #ef5350;
    text-align: center;
    transition: all 0.3s ease;
}

.success-message {
    display: block;
    background-color: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #4caf50;
    text-align: center;
    transition: all 0.3s ease;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    color: #1f2937;
    margin-bottom: 10px;
}

.modal-header p {
    color: #6b7280;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: #22c55e;
    transform: rotate(90deg);
}

@media (max-width: 900px) {
    .card-container {
        flex-direction: column;
    }
    
    .info-panel {
        order: 2;
        margin-top: 30px;
    }
    
    .form-panel {
        order: 1;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }
    
    .remember {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 25px;
    }
    
    .info-panel {
        padding: 25px;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    .logo h1 {
        font-size: 28px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .input-group input {
        padding: 12px 45px 12px 40px;
    }
}