/* Login Page Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --secondary-gradient: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.login-container::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 200 200"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="200" height="200" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.login-logo::after {
    content: '💎';
    position: absolute;
    margin-left: 10px;
    font-size: 2rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.login-description {
    color: #9ca3af;
    font-size: 0.9rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    border-radius: 15px;
    border: 2px solid rgba(30, 64, 175, 0.2);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    height: 60px;
}

.form-control:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
    background: white;
}

.form-control.is-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
}

.form-floating label {
    padding: 1rem 1.5rem;
    color: #6b7280;
    font-weight: 500;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1e40af;
}

.btn-login {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 1rem 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
}

.btn-login::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;
}

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

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.4);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(30, 64, 175, 0.1);
}

.login-footer a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-footer a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.alert {
    border-radius: 15px;
    border: none;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    color: #dc2626;
    border-left: 4px solid #ef4444;
}

.alert-success {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
    color: #16a34a;
    border-left: 4px solid #22c55e;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

.input-group-text {
    background: rgba(30, 64, 175, 0.1);
    border: 2px solid rgba(30, 64, 175, 0.2);
    border-right: none;
    border-radius: 15px 0 0 15px;
    color: #1e40af;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 15px 15px 0;
}

.input-group .form-control:focus + .input-group-text,
.input-group .input-group-text:has(+ .form-control:focus) {
    border-color: #1e40af;
    background: rgba(30, 64, 175, 0.15);
}

.phone-input-group {
    position: relative;
}

.country-code {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-weight: 500;
    z-index: 5;
    pointer-events: none;
}

.phone-input {
    padding-left: 60px !important;
}

.features-list {
    background: rgba(30, 64, 175, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #374151;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item i {
    color: #1e40af;
    margin-right: 0.75rem;
    width: 20px;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: floatShape 6s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

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

/* Responsive Design */
@media (max-width: 576px) {
    .login-container {
        padding: 1rem;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-logo {
        font-size: 2rem;
    }

    .login-subtitle {
        font-size: 1rem;
    }

    .login-description {
        font-size: 0.85rem;
    }

    .floating-shape:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .floating-shape:nth-child(2) {
        width: 40px;
        height: 40px;
    }

    .floating-shape:nth-child(3) {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
    }

    .login-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
    }

    .login-logo {
        font-size: 1.8rem;
    }

    .login-subtitle {
        font-size: 0.95rem;
    }

    .login-description {
        font-size: 0.8rem;
    }

    .form-control {
        height: 55px;
        font-size: 0.9rem;
    }

    .btn-login {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .floating-shapes {
        display: none; /* Hide floating shapes on very small screens */
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 1rem 0.75rem;
        border-radius: 15px;
    }

    .login-logo {
        font-size: 1.6rem;
    }

    .login-subtitle {
        font-size: 0.9rem;
    }

    .login-description {
        font-size: 0.75rem;
    }

    .form-control {
        height: 50px;
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .btn-login {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .form-floating label {
        font-size: 0.85rem;
    }
}
