/* ShilpX Login Page Styles */

.login-page {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fed7aa 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.login-navbar {
    background: rgba(28, 25, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(245, 158, 11, 0.2);
    padding: 1rem 0;
}

.login-container {
    position: relative;
    z-index: 1;
    padding: 0;
}

.login-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.3);
}

/* Left Side - Branding */
.login-left {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 4rem 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-branding {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #78350f;
}

.brand-icon {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand-icon i {
    font-size: 3.5rem;
    color: #f59e0b;
}

.login-branding h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.login-branding .lead {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.login-features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.feature-item i {
    color: #78350f;
    font-size: 1.3rem;
}

/* Right Side - Login Form */
.login-right {
    padding: 4rem 3rem;
    background: white;
}

.login-form-container {
    max-width: 400px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h3 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #78350f;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #78350f;
    opacity: 0.7;
}

.auth-form {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-label {
    font-weight: 600;
    color: #78350f;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    border: 2px solid #fbbf24;
    color: #78350f;
    font-size: 1.1rem;
}

.form-control {
    border: 2px solid #fbbf24;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
    background: #fffbeb;
}

.btn-primary {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    border: 2px solid #d1d5db;
    color: #6b7280;
    font-weight: 600;
}

.btn-outline-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

.login-info {
    margin-top: 2rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fef3c7, #fef3c7);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    display: flex;
    align-items: start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #78350f;
}

.login-info i {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

/* Message Styles */
.alert {
    border-radius: 10px;
    border: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

/* Loading State */
.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsive */
@media (max-width: 991px) {
    .login-left {
        padding: 3rem 2rem;
    }

    .login-right {
        padding: 3rem 2rem;
    }

    .login-branding h2 {
        font-size: 1.5rem;
    }

    .brand-icon {
        width: 100px;
        height: 100px;
    }

    .brand-icon i {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .login-card {
        margin: 1rem;
    }

    .login-left {
        padding: 2rem 1.5rem;
    }

    .login-right {
        padding: 2rem 1.5rem;
    }

    .login-header h3 {
        font-size: 1.5rem;
    }

    .feature-item {
        font-size: 1rem;
    }
}

/* Animations for form elements */
.form-control,
.input-group-text {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus ~ .input-group-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

/* Email display in OTP form */
#email-display {
    font-weight: 600;
    color: #f59e0b;
}

/* Back button hover effect */
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fbbf24;
    color: #fbbf24;
}
