:root {
    --brand-primary: #212529;
    --brand-accent: #01c0a8;
    --brand-accent-hover: #00a892;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --card-border: rgba(255, 255, 255, 0.08);
    --success: #28a745;
    --error: #dc3545;
    --font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.6;
    overflow-x: hidden;
}

.privci-logo {
    font-size: 1.25rem;
    line-height: inherit;
    display: inline-block;
    max-height: 100%;
}

.privci-logo img {
    display: block;
    max-height: 100%;
    width: auto; 
    max-width: 250px; 
}

.back-to-login {
    text-align: center;
    margin-top: 1.5rem;
}

.back-link {
    color: var(--brand-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: var(--brand-accent-hover);
    text-decoration: underline;
}

.login-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    height: 600px;
    margin: 20px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 10px 20px rgba(0, 0, 0, 0.4);
    animation: fadeIn 0.8s ease-out;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slope-section {
    flex: 1;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #2c3034 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.slope-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(1, 192, 168, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(33, 37, 41, 0.2) 0%, transparent 50%);
    z-index: 1;
}

.slope-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 400px;
    color: var(--text-light);
}

.slope-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slope-logo i {
    font-size: 2.8rem;
    color: var(--brand-accent);
}

.slope-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slope-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 400;
}

.slope-description {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
    text-align: left;
    border-left: 4px solid var(--brand-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.slope-description h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--brand-accent);
    display: flex;
    align-items: center;
    gap: 10px;
}

.slope-description p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

.form-section {
    flex: 1;
    background: var(--card-bg);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-container {
    max-width: 350px;
    margin: 0 auto;
    width: 100%;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 1;
    transition: color 0.3s ease;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-light);
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(1, 192, 168, 0.15);
    color: var(--text-light);
    outline: none;
}

.form-control:focus ~ .input-icon {
    color: var(--brand-accent);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s ease;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remember-checkbox.checked {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.remember-checkbox.checked::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: var(--brand-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--brand-accent-hover);
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-hover) 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(1, 192, 168, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(1, 192, 168, 0.4);
}

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

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

.btn-login i {
    font-size: 1.1rem;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-message {
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    align-items: center;
    gap: 5px;
}

.success-message {
    color: var(--success);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
    align-items: center;
    gap: 5px;
}

.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.5rem;
    padding: 0.75rem;
    background: rgba(1, 192, 168, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-left: 3px solid var(--brand-accent);
}

.security-notice i {
    color: var(--brand-accent);
}

.footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 500px;
    }
    
    .slope-section {
        padding: 30px 20px;
    }
    
    .form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .slope-section {
        padding: 25px 15px;
    }
    
    .slope-title {
        font-size: 1.8rem;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* Animation for form elements */
.form-group {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hover effects */
.form-control:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

