/* Diffy - Modern Enterprise Design */

:root {
    --primary-text: #0F172A;
    --accent-color: #3b82f6;
    --background: #FEFEFE;
    --subtle-text: #8E9093;
    --sidebar-bg: #0F172A;
    --border-color: #BFCDD6;
    --card-bg: #f5f7fa;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--card-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-text);
    line-height: 1.6;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: var(--background);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 24px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(10px);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #6366f1, #8b5cf6);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.login-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

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

/* Logo/Icon */
.logo-container {
    margin-bottom: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
    margin: 0 auto 8px;
}

.logo-icon i {
    font-size: 36px;
    color: #ffffff;
    z-index: 1;
    position: relative;
}

.logo-image {
    width: 200px;
    height: auto;
    object-fit: contain;
    display: block;
}



/* Header */
.login-header {
    margin-bottom: 24px;
    position: relative;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-text);
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
}

.login-subtitle {
    font-size: 14px;
    color: var(--subtle-text);
    font-weight: 500;
    margin: 8px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    position: relative;
}

/* Form */
.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: var(--background);
    color: var(--primary-text);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--subtle-text);
    font-weight: 400;
}

/* Password Input */
.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--subtle-text);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.checkbox {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    accent-color: var(--accent-color);
}

.checkbox-label {
    font-size: 14px;
    color: var(--primary-text);
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    font-size: 14px;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Sign In Button */
.sign-in-btn {
    width: 100%;
    background: var(--accent-color);
    color: #ffffff;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.sign-in-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

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

/* Registration Link */
.register-link {
    text-align: center;
    margin-bottom: 16px;
}

.register-link p {
    font-size: 14px;
    color: var(--subtle-text);
    margin: 0;
}

.register-link-text {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.register-link-text:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Footer */
.login-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.security-text {
    font-size: 12px;
    color: var(--subtle-text);
    margin: 0;
}

/* Alert Messages */
.alert {
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
        max-width: 380px;
    }
    
    .login-card {
        padding: 20px 24px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .logo-image {
        width: 160px;
    }
    
    .form-options {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
}

/* Dashboard Styles (for other pages) */
.navbar-brand {
    font-weight: 600;
}

.dashboard-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
}