/* AccordRx Login Page - Exact Match Design */

/* Main Container */
.login-page-container {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    background: white;
    box-shadow: none;
}

/* Form Section - Left Side */
.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 80px;
    background: white;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
}

/* Logo */
.login-logo {
    width: auto;
    height: 60px;
    margin-bottom: 40px;
    display: block;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
    width: 100%;
}

/* Labels */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #374151;
    margin-bottom: 8px;
    line-height: 1.4;
}

/* Input Fields */
.form-input,
input[type="email"],
input[type="password"],
.control input {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #374151 !important;
    background: white !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
}

.form-input:focus,
input[type="email"]:focus,
input[type="password"]:focus,
.control input:focus {
    outline: none !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 1px #4f46e5 !important;
}

/* Password Container */
.password-container {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
}

.password-toggle:hover {
    color: #374151;
}

/* Form Options Row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    width: 100%;
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-input {
    width: 16px !important;
    height: 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 4px !important;
    background: white !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.checkbox-input:checked {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 400;
    color: #6b7280;
    cursor: pointer;
    margin: 0;
}

/* Forgot Password Link */
.forgot-password-link {
    font-size: 14px;
    font-weight: 400;
    color: #4f46e5;
    text-decoration: none;
    cursor: pointer;
}

.forgot-password-link:hover {
    color: #3730a3;
    text-decoration: underline;
}

/* Login Button */
.login-button,
button[type="submit"] {
    width: 100% !important;
    height: 48px !important;
    background: #1e1a4d !important;
    color: white !important;
    border: none !important;
    border-radius: 100px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
}

.login-button:hover,
button[type="submit"]:hover {
    background: #0e0b27 !important;
}

/* Image Section - Right Side */
.login-image-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.login-image-section img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.login-image-section .text-center {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    text-align: left;
}

.login-image-section h2 {
    display: none;
}

.login-image-section p {
    display: none;
}

/* Error Messages */
.control-error,
.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-form-section {
        padding: 40px 60px;
    }
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }

    .login-image-section {
        display: none;
    }

    .login-form-section {
        padding: 40px 20px;
        justify-content: center;
        align-items: center;
    }

    .login-form-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 20px 16px;
    }

    .login-logo {
        height: 50px;
        margin-bottom: 30px;
    }
}

/* Override any unwanted styles */
.login-form-section * {
    box-sizing: border-box;
}

/* Remove any default margins/paddings that might interfere */
.form-group label {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
}

.form-group input {
    margin: 0 !important;
}

/* Hide Bagisto's default styling conflicts */
.control-group {
    margin-bottom: 24px !important;
}

.control-group label {
    margin-bottom: 8px !important;
}

/* Forgot Password Specific Styles */
.forgot-password-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    text-align: center;
}

.forgot-password-subtitle {
    font-size: 16px;
    color: #6b7280;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Reset Password Button - Purple */
.reset-password-button {
    width: 100% !important;
    height: 48px !important;
    background: #4338ca !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    display: block !important;
    text-align: center !important;
}

.reset-password-button:hover {
    background: #3730a3 !important;
}

/* Go Back Button - Orange */
.go-back-button {
    width: 100% !important;
    height: 48px !important;
    background: #ea580c !important;
    color: white !important;
    border: none !important;
    border-radius: 100px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.go-back-button:hover {
    background: #c2410c !important;
    color: white !important;
    text-decoration: none !important;
}
