/* ===============================
   ADMIN LOGIN PAGE STYLES - PROFESSIONAL & MODERN
   =============================== */

/* CSS Variables - Matching custom.css and Entire Project */
:root {
    /* Obsidian Login Theme */
    --primary-black: #222222;
    --primary-black-hover: #000000;
    
    --bg-deep: #f5f7f9;
    --bg-surface: #ffffff;
    
    /* Grays */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Card & Text */
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --border-light: #e2e8f0;
    --input-bg: #ffffff;
    --shadow-premium: 0 10px 25px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--bg-deep);
    height: 100vh;
}

/* Landing Container - Premium Dark Background */
.landing-container {
    min-height: 100vh;
    background: var(--bg-deep);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 0, 0, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 0, 0, 0.03) 0px, transparent 50%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Background overlay for depth */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Content Wrapper */
.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
}

/* Login Card - Clean & Premium */
.login-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Login Header & Logo */
.login-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.logo-wrapper {
    margin-bottom: 1.25rem;
    background: transparent;
    display: inline-flex;
    padding: 0;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
}

.login-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-medium);
    font-weight: 400;
}

/* Error Messages */
.messages-container {
    margin-bottom: 1.5rem;
}

.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

.alert-icon {
    width: 20px;
    height: 20px;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
}

.label-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-black);
}

.form-input {
    width: 100%;
    padding: 0.9rem 1.1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--input-bg);
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: var(--primary-black);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-black-light);
}

/* Password Visibility Toggle */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.toggle-password.active {
    color: var(--primary-black);
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-teal);
    cursor: pointer;
}

.forgot-link {
    font-size: 0.875rem;
    color: var(--primary-black);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    color: var(--primary-teal-hover);
    text-decoration: underline;
}

/* Login Button - Matching sidebar teal */
.login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    background: var(--primary-black);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.login-button:hover {
    background: var(--primary-black-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

.button-arrow {
    width: 20px;
    height: 20px;
}

/* Login Footer */
.login-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.footer-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
}

.info-icon {
    width: 16px;
    height: 16px;
    color: var(--primary-black);
}

/* Responsive */
@media (max-width: 500px) {
    .landing-container {
        padding: 1.5rem;
    }
    .login-card {
        padding: 2.5rem 1.5rem;
    }
    .login-title {
        font-size: 1.5rem;
    }
}
