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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: #f9f7f3;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
}

.logo {
    position: fixed;
    left: 30px;
    top: 5px;
    bottom: 10px;
    z-index: 1000;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.logo-img {
    width: 125px;
    height: 125px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

.logo:hover .logo-img {
    animation: float 1s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(36, 127, 128, 0.3));
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    mix-blend-mode: multiply;
    animation: blob 7s infinite;
}

.blob-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: #c084fc;
    animation-delay: 0s;
}

.blob-2 {
    top: 20%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: #fde047;
    animation-delay: 2s;
}

.blob-3 {
    bottom: 10%;
    left: 30%;
    width: 300px;
    height: 300px;
    background: #fb7185;
    animation-delay: 4s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    top: -100px;
    right: 24px;
    background: #10b981;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
    font-weight: 500;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.show {
    top: 24px;
    animation: slideIn 0.5s ease-out;
}

.toast.error {
    background: #ef4444;
}

.toast-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2.5;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Main Container */
.main-container {
    position: relative;
    max-width: 1100px;
    margin: 20px auto 40px;
    background: #f2efe9;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.main-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Section */
.left-section {
    background: linear-gradient(135deg, #a7d6db 0%, #48A6A7 50%, #1c75a1 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.pattern-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 30px 30px;
}

.left-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.logo-animated {
    margin: 0 auto 24px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.sparkle-icon {
    width: 80px;
    height: 80px;
    stroke-width: 2;
    animation: rotate 3s linear infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.brand-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.brand-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    animation: slideInLeft 0.6s ease-out;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* Right Section - Form */
.right-section {
    padding: 50px;
    display: flex;
    align-items: center;
}

.form-container {
    width: 100%;
}

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

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #247f80;
    margin-bottom: 8px;
}

.form-header p {
    color: #48A6A7;
    font-size: 15px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #247f80;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9ca3af;
    pointer-events: none;
    z-index: 2;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 1;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #48A6A7;
    box-shadow: 0 0 0 4px rgba(72, 166, 167, 0.1);
    transform: translateY(-2px);
}

.input-wrapper input.error {
    border-color: #ef4444;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #48A6A7, #025c89);
    transition: width 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.input-wrapper input:focus ~ .input-border {
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.3s ease;
    padding: 4px;
    z-index: 2;
}

.toggle-password:hover {
    color: #6b7280;
}

.eye-icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

/* Password Strength */
.password-strength {
    margin-top: 12px;
}

.strength-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
}

.strength-label {
    color: #6b7280;
}

.strength-text {
    font-weight: 600;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.medium {
    color: #f59e0b;
}

.strength-text.good {
    color: #3b82f6;
}

.strength-text.strong {
    color: #10b981;
}

.strength-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.5s ease;
    border-radius: 3px;
}

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.medium {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

/* Error Messages */
.error-message {
    display: none;
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    animation: shake 0.4s ease;
}

.error-message.show {
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #5bbbbc 0%, #1c75a1 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(44, 178, 208, 0.4);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #c5ccd9;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: #f2efe9;
    padding: 0 16px;
    color: #878f9e;
    font-size: 14px;
    position: relative;
}

/* Google Button */
.google-btn {
    width: 100%;
    padding: 14px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.google-btn:hover {
    border-color: #48A6A7;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Footer Link */
.footer-link {
    text-align: center;
    margin-top: 20px;
    color: #6b7280;
    font-size: 14px;
}

.footer-link a {
    color: #48A6A7;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link a:hover {
    color: #025c89;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    body {
        padding-top: 70px;
    }

    .logo {
        font-size: 2rem;
        top: 15px;
        left: 20px;
    }

    .main-container {
        grid-template-columns: 1fr;
        margin: 20px;
        max-width: 600px;
    }

    .left-section {
        display: none;
    }

    .right-section {
        padding: 40px 30px;
    }

    .blob {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .submit-btn,
    .google-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
