:root {
    --primary-color: #346bb2;
    --primary-light: #e8f0fe;
    --secondary-color: #2a5592;
    --accent-color: #4a7bc8;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    --text-dark: #333;
    --text-muted: #666;
    --gradient: linear-gradient(135deg, #346bb2 0%, #4a7bc8 100%);
    --shadow: 0 10px 30px rgba(52, 107, 178, 0.15);
    --shadow-hover: 0 20px 40px rgba(52, 107, 178, 0.25);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}


body {
    font-family: 'Poppins', sans-serif;
    background: var(--light-color);
    color: var(--text-dark);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--gradient);
}

.sub-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 90vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: scale(0.8);
    transform-origin: center;
}

.left-panel {
    flex: 1;
    background: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel {
    flex: 1;
    background: var(--gradient);
    color: white;
    padding: 40px;
    /* display: flex!important; */
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.right-panel::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.right-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    display: inline-block;
}

.logo span {
    color: var(--accent-color);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

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

.form-group {
    margin-bottom: 20px;
    text-align: start;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 107, 178, 0.2);
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    inset-inline-end: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
}

.remember-me input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
}


.terms {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.terms input {
    margin-top: 5px;
    margin-inline-end: 10px;
}

.terms label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.terms a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.btn-register {
    width: 100%;
    padding: 15px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 20px;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    margin: 3px;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-google {
    color: #DB4437;
}

.btn-google:hover {
    border-color: #DB4437;
    background: rgba(219, 68, 55, 0.05);
}

.btn-facebook {
    color: #4267B2;
}

.btn-facebook:hover {
    border-color: #4267B2;
    background: rgba(66, 103, 178, 0.05);
}

.btn-github {
    color: #333;
}

.btn-github:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.05);
}

.btn-linkedin {
    color: var(--info-color, #0dcaf0);
}

.btn-linkedin:hover {
    border-color: var(--info-color, #0dcaf0);
    background: rgba(13, 202, 240, 0.05);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

.right-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.right-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 400px;
    margin-inline-start: auto;
    margin-inline-end: auto;
}

.features {
    list-style: none;
    text-align: start;
    max-width: 400px;
    margin: 0 auto;
}

.features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.features i {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline-end: 15px;
    flex-shrink: 0;
}

/* Floating Home Button */

.floating-bottom-btns {
    position: fixed;
    bottom: 20px;
    inset-inline-end: 20px;
    display: flex;
    gap: 15px;
    z-index: 9999;
}

.floating-home-btn,
.floating-lang-btn {
    background: linear-gradient(135deg, #346bb2, #2a5592);
    color: #fff;
    font-size: 1.2rem;
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1;
}

.floating-home-btn:hover,
.floating-lang-btn:hover {
    background: linear-gradient(135deg, #2a5592, #346bb2);
    transform: translateY(-4px);
}

.floating-lang-btn {
    background: linear-gradient(135deg, #ffffff, #f9f9f9);
    color: #346bb2;
    font-weight: 600;
    border-radius: 30px;
}

.floating-lang-btn:hover {
    background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
    color: #2a5592;
}


/* ===== Alerts Styling ===== */
.alert {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
}

.alert p {
    margin: 0;
    flex: 1;
    line-height: 1.5;
}

/* Danger Outline */
.alert-outline-danger {
    border: 1px solid #dc3545;
    background-color: #fff5f5;
    color: #dc3545;
}

/* Success Outline */
.alert-outline-success {
    border: 1px solid #28a745;
    background-color: #f6fff9;
    color: #28a745;
}

/* Info Outline */
.alert-outline-info {
    border: 1px solid #0dcaf0;
    background-color: #f3fcff;
    color: #0dcaf0;
}

/* Warning Outline */
.alert-outline-warning {
    border: 1px solid #ffc107;
    background-color: #fffdf5;
    color: #856404;
}

/* Close button styling */
.alert .btn-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert .btn-close:hover {
    opacity: 1;
}

/* Responsive adjustments */

@media (max-width: 575.98px) {
    .sub-container {
        transform-origin: center;
    }

    h1 {
        font-size: 1.8rem;
    }

    .left-panel {
        padding-bottom: 100px;
    }
}
