/* Simple Login Page - White & Green Theme */

:root {
    --primary-color: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --success-color: #22c55e;
    --danger-color: #ef4444;
    --warning-color: #f97316;
    --light-bg: #f8faf6;
    --card-bg: #ffffff;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

body {
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ffffff;
}

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none;
}

.shape {
    display: none;
}

/* Login Container */
.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Wrapper */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Card */
.login-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 30px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo-container {
    position: relative;
    z-index: 1;
    margin-bottom: 15px;
}

.logo-img {
    max-width: 90px;
    height: auto;
}

.app-title {
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 3px;
    letter-spacing: -0.3px;
}

.app-subtitle {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* Form Section */
.form-section {
    padding: 35px 30px;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    text-align: center;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    color: var(--text-primary);
    background-color: #f9fafb;
    transition: all 0.2s ease;
    font-weight: 500;
}

.form-control:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Password Input Wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper .form-control {
    width: 100%;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Remember Me & Links */
.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
}

/* Demo Credentials Info */
.demo-credentials-info {
    margin-bottom: 18px;
}

.info-box {
    background: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-box i {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.info-box div {
    flex: 1;
}

.info-box strong {
    display: block;
    color: var(--text-primary);
    font-size: 12px;
    margin-bottom: 3px;
    font-weight: 600;
}

.info-box small {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 24px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.btn-login:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #15803d 100%);
}

.btn-login:active:not(:disabled) {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text,
.btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Validation Messages */
.invalid-feedback {
    color: var(--danger-color);
    font-size: 12px;
    margin-top: 6px;
    display: block;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Alert Styles */
.alert {
    border: 1px solid;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 18px;
}

.alert-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #7f1d1d;
}

.alert-success {
    background-color: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.alert i {
    margin-right: 8px;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    line-height: 1.6;
}

/* Footer */
.login-footer {
    background-color: #f9fafb;
    padding: 15px 30px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-wrapper {
        max-width: 100%;
    }

    .login-card {
        border-radius: 10px;
    }

    .logo-section {
        padding: 25px 20px;
    }

    .logo-img {
        max-width: 80px;
    }

    .app-title {
        font-size: 24px;
    }

    .form-section {
        padding: 25px 20px;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .login-container {
        padding: 10px;
    }

    .logo-section {
        padding: 20px 15px;
    }

    .logo-img {
        max-width: 70px;
    }

    .app-title {
        font-size: 22px;
        margin: 10px 0 3px;
    }

    .app-subtitle {
        font-size: 12px;
    }

    .form-section {
        padding: 20px 15px;
    }

    .form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 14px;
    }

    .info-box {
        padding: 10px 12px;
    }

    .info-box i {
        font-size: 14px;
    }

    .info-box strong {
        font-size: 11px;
    }

    .info-box small {
        font-size: 10px;
    }

    .btn-login {
        font-size: 14px;
        padding: 11px 20px;
    }

    .login-footer {
        padding: 12px 15px;
    }

    .footer-text {
        font-size: 10px;
    }
}
