/* ====================================
           ANIMATION KEYFRAMES
        ==================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(10, 89, 172, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(10, 89, 172, 0.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ====================================
           ANIMATION CLASSES
        ==================================== */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-delay-100 {
    animation-delay: 0.1s;
}

.animate-delay-200 {
    animation-delay: 0.2s;
}

.animate-delay-300 {
    animation-delay: 0.3s;
}

.animate-delay-400 {
    animation-delay: 0.4s;
}

/* ====================================
           CUSTOM FORM STYLES
        ==================================== */
.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    transition: color 0.3s ease;
    z-index: 10;
}

.input-group input:focus+.input-icon,
.input-group input:focus~.input-icon {
    color: #0a59ac;
}

.input-field {
    padding-left: 48px !important;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #0a59ac !important;
    box-shadow: 0 0 0 4px rgba(10, 89, 172, 0.1) !important;
}

/* Password toggle button */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    transition: color 0.3s ease;
    z-index: 10;
    padding: 4px;
}

.password-toggle:hover {
    color: #0a59ac;
}

/* ====================================
           BUTTON STYLES
        ==================================== */
.btn-primary {
    background: linear-gradient(135deg, #0a59ac 0%, #073f7a 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(10, 89, 172, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.spinner {
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

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

/* ====================================
           LEFT PANEL STYLES
        ==================================== */
.hero-panel {
    background: linear-gradient(135deg, #11325f 0%, #0a2342 50%, #051425 100%);
    position: relative;
    overflow: hidden;
}

.hero-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom right,
            rgba(10, 89, 172, 0.15),
            rgba(17, 50, 95, 0.3));
}

/* Floating shapes decoration */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(10, 89, 172, 0.2), rgba(10, 89, 172, 0.05));
    filter: blur(1px);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 20%;
    animation: float 10s ease-in-out infinite;
}

/* ====================================
           LOGIN CARD STYLES
        ==================================== */
.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
}

.login-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Logo container with glow effect */
.logo-container {
    background: linear-gradient(135deg, #0a59ac 0%, #073f7a 100%);
    animation: pulse-glow 3s ease-in-out infinite;
}

/* Checkbox custom style */
.custom-checkbox {
    accent-color: #0a59ac;
}

.custom-checkbox:checked {
    background-color: #0a59ac;
    border-color: #0a59ac;
}

/* ====================================
           FEATURE ICONS STYLES
        ==================================== */
.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-icon {
    background: linear-gradient(135deg, rgba(10, 89, 172, 0.3), rgba(10, 89, 172, 0.1));
    border: 1px solid rgba(10, 89, 172, 0.2);
}

/* ====================================
       GOOGLE LOGIN BUTTON STYLES
    ==================================== */
.google-login-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(66, 133, 244, 0.1),
            transparent);
    transition: left 0.5s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    border-color: #4285F4;
    background: linear-gradient(to right, #fff, #f8faff);
}

.google-login-btn:active {
    transform: scale(0.98);
}

.google-login-btn svg {
    transition: transform 0.3s ease;
}

.google-login-btn:hover svg {
    transform: scale(1.1);
}