/* DGLegal Authentication Pages Styles */

/* Color Variables */
:root {
    --color-primary: #010101;
    --color-secondary: hsl(44, 71%, 32%);
    --color-coral-reef: #d5cbb8;
    --color-blue-dark: #040e2a;
}

/* Body Background */
body {
    background: var(--color-coral-reef);
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* Outer Container - 100vh/100vw with padding and hidden overflow */
.auth-outer-container {
    width: 100vw;
    height: 100vh;
    padding: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

/* Inner Container - Unified card containing form and image */
.auth-inner-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 20px;
    box-shadow: 0 5px 5px rgba(87, 87, 87, 0.474);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.auth-inner-container .row {
    height: 100%;
    overflow: hidden;
}

.auth-inner-container .col-lg-6 {
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Form Card Styles */
.login-form-card,
.signup-form-card {
    background: rgba(255, 255, 255, 0.751);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    padding: 40px 35px;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(138, 107, 23, 0.3) transparent;
}

.signup-form-card {
    padding: 30px 35px;
}

/* Custom scrollbar for webkit browsers */
.signup-form-card::-webkit-scrollbar,
.login-form-card::-webkit-scrollbar {
    width: 8px;
}

.signup-form-card::-webkit-scrollbar-track,
.login-form-card::-webkit-scrollbar-track {
    background: transparent;
}

.signup-form-card::-webkit-scrollbar-thumb,
.login-form-card::-webkit-scrollbar-thumb {
    background-color: rgba(138, 107, 23, 0.3);
    border-radius: 4px;
}

.signup-form-card::-webkit-scrollbar-thumb:hover,
.login-form-card::-webkit-scrollbar-thumb:hover {
    background-color: rgba(138, 107, 23, 0.5);
}

.login-brand,
.signup-brand {
    margin-bottom: 25px;
}

.signup-brand {
    margin-bottom: 20px;
}

.login-brand img,
.signup-brand img {
    height: 120px;   
    width: auto;
    max-width: 300px;
}

.login-title-section,
.signup-title-section {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 25px;
}

.signup-title-section {
    margin-bottom: 20px;
}

.login-title,
.signup-title {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -.5px;
    color: var(--color-blue-dark);
    margin: 0;
}

.login-register-link,
.signup-login-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgb(118, 105, 80);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 30px;
    background-color: rgba(138, 107, 23, 0.1);
    transition: all 0.3s ease;
}

.login-register-link:hover,
.signup-login-link:hover {
    color: var(--color-blue-dark);
    background-color: rgba(138, 107, 23, 0.2);
}

/* Form Control Styles */
.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 10px 18px;
    font-size: 0.9rem;
}

.signup-form-card .form-control,
.signup-form-card .form-select {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-blue-dark);
    box-shadow: 0 0 0 0.2rem rgba(4, 14, 42, 0.25);
    outline: none;
}

textarea.form-control {
    border-radius: 20px;
    resize: vertical;
}

.form-label {
    color: var(--color-blue-dark);
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.signup-form-card .form-label {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

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

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
}

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

/* Button Styles */
.btn-login,
.btn-signup {
    background-color: transparent;
    color: var(--color-blue-dark);
    border: 2px solid var(--color-blue-dark);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-login:hover,
.btn-signup:hover {
    background-color: var(--color-blue-dark);
    color: #ffffff;
    border-color: var(--color-blue-dark);
}

.signup-form-card .btn-signup {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Forgot Password Link */
.forgot-password-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 15px;
    display: inline-block;
}

.forgot-password-link a {
    color: var(--color-blue-dark);
    text-decoration: none;
}

.forgot-password-link a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Image Section Styles */
.login-image-section,
.signup-image-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.login-image-section {
    background-image: url('../DG-Legal-Assets/Our Team/Wilson Wahome.jpg');
}

.signup-image-section {
    background-image: url('../DG-Legal-Assets/Banners and portraits/Portraits/bg-5.jpg');
}

.login-image-section::before,
.signup-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(254, 213, 130, 0.5) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Copyright */
.login-copyright,
.signup-copyright {
    color: #666;
    font-size: 0.85rem;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}


/* Ensure form content is properly spaced and scrollable */
.signup-form-card form {
    flex: 1;
    min-height: 0;
}

.signup-form-card .signup-title-section {
    flex-shrink: 0;
}

.signup-form-card .signup-brand {
    flex-shrink: 0;
}

.signup-form-card .alert {
    flex-shrink: 0;
    margin-bottom: 15px;
}

/* Ensure form fields have proper spacing */
.signup-form-card .mb-2 {
    margin-bottom: 0.75rem !important;
}

.signup-form-card .mb-3 {
    margin-bottom: 1rem !important;
}

/* Fix row spacing in form - override Bootstrap defaults */
.signup-form-card form .row {
    margin-bottom: 0.75rem !important;
    margin-left: -0.5rem !important;
    margin-right: -0.5rem !important;
}

.signup-form-card form .row > [class*="col-"] {
    margin-bottom: 0 !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Ensure consistent spacing - all form field containers */
.signup-form-card form > div.mb-2,
.signup-form-card form > .row {
    margin-bottom: 0.75rem !important;
}

/* Reduce form-label bottom margin to minimize gaps */
.signup-form-card .form-label {
    margin-bottom: 4px !important;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .auth-outer-container {
        padding: 20px;
    }
    
    .auth-inner-container {
        max-height: calc(100vh - 40px);
    }
    
    .login-image-section,
    .signup-image-section {
        display: none;
    }
    
    .login-form-card,
    .signup-form-card {
        padding: 40px 30px;
    }
}

