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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0 20px;
}

/* Main Container */
.main-container {
    display: flex;
    min-height: 100vh;
    max-width: 1370px;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Welcome Section (Left Side) */
.welcome-section {
    background: #AA3339 url('assets/images/absa-logo-bg.png') no-repeat center center;
    background-size: cover;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 60px 80px 60px 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.03)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.absa-logo {
    margin-bottom: 50px;
    margin-top: 0px;
    z-index: 1;
    position: relative;
}

.logo-image {
    height: 80px;
    width: auto;
}

.welcome-content {
    z-index: 1;
    position: relative;
}

.welcome-content h1 {
    font-size: 58px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.welcome-content p {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Login Section (Right Side) */
.login-section {
    background-color: #f8f9fa;
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 35px;
    position: relative;
}

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

.login-header {
    margin-bottom: 32px;
    text-align: left;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    text-align: left;
}

.login-header p {
    font-size: 14px;
    color: #999;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 300;
    text-align: left;
}

.register-prompt {
    font-size: 14px;
    color: #999;
    font-weight: 300;
    text-align: left;
}

/* Form Styles */
.login-form,
.registration-form {
    width: 100%;
}

.registration-header {
    margin-bottom: 30px;
}

.registration-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.registration-header p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-transform: none;
}

.form-group input {
    width: 100%;
    padding: 8px 0;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background-color: transparent;
    color: #333;
    height: auto;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: #AA3339;
    box-shadow: none;
}

.form-group input::placeholder {
    color: #aaa;
    font-size: 14px;
}

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

.password-wrapper input {
    padding-right: 35px;
}

.password-toggle {
    position: absolute;
    right: 10px;
    bottom: 8px;
    background: none;
    border: none;
    color: #AA3339;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    font-size: 16px;
    line-height: 1;
}

.password-toggle:hover {
    color: #8B2635;
}

/* Forgot Password */
.forgot-password {
    text-align: left;
    margin-bottom: 32px;
    margin-top: 12px;
}

.forgot-link {
    color: #AA3339;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-signin,
.btn-register,
.btn-register-submit,
.btn-back-login {
    flex: 1;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    height: 44px;
}

.btn-signin,
.btn-register-submit {
    background-color: #d1d5db;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 4px;
}

.btn-signin:hover,
.btn-register-submit:hover {
    background-color: #b8b8b8;
    border-color: #b8b8b8;
}

.btn-register,
.btn-back-login {
    background-color: white;
    color: #AA3339;
    border: 1px solid #AA3339;
    border-radius: 4px;
}

.btn-register:hover,
.btn-back-login:hover {
    background-color: #f9fafb;
    color: #AA3339;
    border-color: #AA3339;
}

/* Terms Agreement */
.terms-agreement {
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.checkbox-label input {
    display: none;
}

.checkbox-label .checkmark {
    width: 16px;
    height: 16px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input:checked + .checkmark {
    background-color: #AA3339;
    border-color: #AA3339;
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 10px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terms-link {
    color: #AA3339;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Bottom Controls */
.bottom-controls {
    position: absolute;
    bottom: 30px;
    left: 35px;
    right: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

.language-selector i {
    color: #AA3339;
    font-size: 14px;
}

.language-selector select {
    border: none;
    background: none;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    outline: none;
    font-weight: 400;
}

.help-button .btn-help {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #AA3339;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    font-size: 16px;
}

.help-button .btn-help:hover {
    background-color: #8B2635;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .welcome-section {
        flex: none;
        min-height: 300px;
        padding: 40px 30px;
        text-align: center;
        align-items: center;
    }

    .welcome-content h1 {
        font-size: 36px;
    }

    .login-section {
        flex: none;
        padding: 40px 30px;
    }

    .bottom-controls {
        position: static;
        margin-top: 30px;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 30px 20px;
        min-height: 250px;
    }

    .welcome-content h1 {
        font-size: 28px;
    }

    .welcome-content p {
        font-size: 16px;
    }

    .login-section {
        padding: 30px 20px;
    }

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

    .form-buttons {
        flex-direction: column;
    }

    .btn-signin,
    .btn-register,
    .btn-register-submit,
    .btn-back-login {
        width: 100%;
    }

    .bottom-controls {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 20px 15px;
        min-height: 200px;
    }

    .absa-logo {
        margin-bottom: 30px;
    }

    .logo-text {
        font-size: 18px;
    }

    .welcome-content h1 {
        font-size: 24px;
    }

    .login-section {
        padding: 20px 15px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .form-group input {
        padding: 10px 14px;
    }

    .btn-signin,
    .btn-register,
    .btn-register-submit,
    .btn-back-login {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Animation for form switching */
.login-form,
.registration-form {
    transition: all 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Buttons */
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.3);
}

/* Registration Section */
.register-section,
.back-to-login {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-link,
.login-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 600;
}

.register-link:hover,
.login-link:hover {
    text-decoration: underline;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
}

.terms-checkbox input {
    display: none;
}

.terms-checkbox .checkmark {
    margin-top: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.terms-link {
    color: #dc3545;
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Information Sidebar */
.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 25px;
    border-left: 4px solid #dc3545;
}

.info-card h3 {
    color: #dc3545;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.benefits-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
}

.benefits-list i {
    color: #28a745;
    margin-right: 10px;
    font-size: 12px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.contact-info i {
    color: #dc3545;
    margin-right: 10px;
    width: 16px;
}

.security-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.security-info i {
    color: #28a745;
    font-size: 20px;
    margin-top: 2px;
}

.security-info p {
    color: #495057;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-sidebar {
        order: -1;
    }

    .info-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .top-nav-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-links {
        gap: 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .main-content {
        padding: 20px 0;
    }

    .login-card,
    .registration-card {
        padding: 30px 20px;
        margin: 0 10px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .info-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .top-nav {
        padding: 10px 0;
    }

    .top-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .main-logo {
        height: 50px;
    }

    .login-card,
    .registration-card {
        padding: 25px 15px;
        margin: 0 5px;
    }

    .login-header h2 {
        font-size: 22px;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 16px;
    }

    .btn-login {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* Animation for form switching */
.login-card,
.registration-card {
    transition: all 0.3s ease;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

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

/* Loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Security Banner */
.security-banner {
    background: linear-gradient(135deg, #1a5f1a, #2d8f2d);
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.security-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.security-indicators {
    display: flex;
    gap: 15px;
}

.security-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 12px;
}

.security-indicator.active {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main-content {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}









/* Captcha Styles */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.captcha-container input {
    flex: 1;
}

.captcha-display {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px 15px;
    gap: 10px;
    min-width: 120px;
    justify-content: center;
}

.captcha-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #333;
    letter-spacing: 2px;
    text-decoration: line-through;
    text-decoration-color: #999;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #DC143C;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background-color: rgba(220, 20, 60, 0.1);
    transform: rotate(180deg);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    margin-top: 12px;
}

.password-toggle {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    margin-top: 12px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Custom Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background-color: #DC143C;
    border-color: #DC143C;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.forgot-password {
    color: #DC143C;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #DC143C, #B91C1C);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background: linear-gradient(135deg, #B91C1C, #991B1B);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: #DC143C;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar-section {
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-section h3 {
    color: #DC143C;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 10px;
}

.quick-links a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.quick-links a:hover {
    color: #DC143C;
}

.quick-links i {
    width: 20px;
    color: #DC143C;
}

.security-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #DC143C;
}

.security-notice i {
    color: #DC143C;
    font-size: 24px;
    margin-top: 5px;
}

.support-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-info i {
    color: #DC143C;
    width: 20px;
}



/* Responsive Design */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .header-main-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-nav ul {
        gap: 15px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .login-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header-top-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-info span {
        display: block;
        margin: 5px 0;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}
