/* 
 * main.css - DoctorConnect.net
 * Updated: March 2025
 */

:root {
    --primary-color: #0066FF;
    --primary-hover: #0055d4;
    --text-dark: #333;
    --text-light: #666;
    --background: #f8f9fa;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #3573cb 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
}

/* Main layout - two panels side by side */
.login-wrapper {
    width: 100%;
    max-width: 880px; /* Adjusted to account for two 420px panels plus 40px gap */
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
}

/* Login Panel - Left side */
.login-section {
    width: 420px;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 650px;
    display: flex;
    flex-direction: column;
}

/* Brand Section - Right side */
.brand-section {
    width: 420px; /* Match the login section width */
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    height: 650px;
    overflow: hidden;
    position: relative;
}

.promo-image {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    max-height: 100%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 0;
    margin: 0;
}

/* Logo and header */
.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo {
    width: 325px;
    max-width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
}

.login-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Security notice */
.security-notice {
    background-color: #e6f7ff;
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.security-notice i {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 2px;
}

.security-notice p {
    margin: 0;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.4;
}

/* Form elements */
.form-floating {
    margin-bottom: 1rem;
    position: relative;
}

.form-floating input {
    height: 3.5rem;
    padding: 1rem 1rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: calc(var(--border-radius) - 4px);
    width: 100%;
}

.form-floating label {
    padding: 1rem;
    color: var(--text-light);
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
}

.form-floating input:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-floating input:not(:placeholder-shown) ~ label,
.form-floating input:focus ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    z-index: 2;
}

/* Login button */
.btn-login {
    width: 100%;
    padding: 0.8rem;
    font-size: 1.1rem;
    background: var(--primary-color);
    border: none;
    border-radius: calc(var(--border-radius) - 4px);
    color: white;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background: var(--primary-hover);
}

/* Forgot password link */
.forgot-password {
    text-align: center;
    margin: 1rem 0;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* Signup link */
.signup-link {
    text-align: center;
    margin-top: 2rem;
}

.signup-link a {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Legal text */
.legal-text {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.legal-text p {
    margin-bottom: 0.75rem;
}

.legal-text p:last-child {
    margin-bottom: 0;
}

/* Legal divider */
.legal-divider {
    margin: 0.75rem 0;
    border: 0;
    border-top: 1px solid #e9ecef;
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.6rem;
}

.copyright a {
    color: var(--text-light);
    text-decoration: none;
}

.copyright a:hover {
    color: var(--primary-color);
}

/* Alert message */
.alert {
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    font-size: 14px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fef3c7;
}

.alert-success {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

/* Service notice modal */
.service-notice {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.notice-content {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.notice-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.notice-status {
    display: inline-block;
    background: #e3f2fd;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) - 4px);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .brand-section {
        width: 100%;
        max-width: 420px;
        height: auto;
        min-height: 400px;
    }

    .login-section {
        width: 100%;
        max-width: 420px;
        height: auto;
    }
}

@media (max-width: 576px) {
    body {
        padding: 1rem;
    }

    .login-wrapper {
        gap: 1rem;
    }

    .brand-section,
    .login-section {
        padding: 1.5rem;
    }

    .btn-login {
        padding: 0.7rem;
    }
}