/* Modern Auth Pages Styling */

/* Wrapper and Container */
.modern-login-wrapper,
.modern-register-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
}

.modern-login-container,
.modern-register-container {
    width: 100%;
    max-width: 550px;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.25);
}

/* Desktop Layout - Two Column */
.auth-layout-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
    align-items: center;
}

.auth-logo-section {
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-logo-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    text-align: center;
    width: 100%;
}

.auth-logo-card img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    margin-bottom: 20px;
}

.auth-logo-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.auth-form-section {
    width: 100%;
}

/* Card Styling */
.login-card,
.register-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

/* Header Styling */
.login-header,
.register-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    padding: 40px 30px;
    text-align: center;
    color: white;
}

.login-header h2,
.register-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-header p,
.register-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Body Styling */
.login-body,
.register-body {
    padding: 40px 30px;
}

/* Form Group */
.form-group {
    margin-bottom: 18px;
}

/* Form Control */
.form-control,
.select2-simple {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
    width: 100%;
    font-family: inherit;
}

.form-control:focus,
.select2-simple:focus {
    border-color: #10b981;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Password Input Group */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-control {
    padding-right: 45px;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #10b981;
    font-size: 18px;
    padding: 8px 10px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.password-toggle-btn:hover {
    color: #059669;
}

.password-toggle-btn:focus {
    outline: none;
}

/* Buttons */
.btn-login,
.btn-register {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 10px;
    cursor: pointer;
}

.btn-login:hover,
.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.btn-login:active,
.btn-register:active {
    transform: translateY(0);
}

.btn-secondary-register {
    background: white;
    border: 2px solid #10b981;
    color: #10b981;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary-register:hover {
    background: #f0fdf4;
    color: #059669;
    border-color: #059669;
    text-decoration: none;
}

/* Social Buttons */
.btn-social {
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-whatsapp {
    background-color: #25d366;
    border-color: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #20ba5a;
    border-color: #20ba5a;
    color: white;
    text-decoration: none;
}

.btn-sms {
    background-color: #34c7f3;
    border-color: #34c7f3;
    color: white;
}

.btn-sms:hover {
    background-color: #2ab3d4;
    border-color: #2ab3d4;
    color: white;
    text-decoration: none;
}

/* Checkbox Wrapper */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-wrapper input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-wrapper label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

/* Forgot Password */
.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #10b981;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #059669;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    color: #999;
    font-size: 13px;
}

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

.divider-text {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 25px 0;
    position: relative;
}

.divider-text::before,
.divider-text::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.divider-text::before {
    left: 0;
}

.divider-text::after {
    right: 0;
}

/* Social Buttons Container */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Footer */
.login-footer,
.register-footer {
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.login-footer p,
.register-footer p {
    margin: 0;
    color: #666;
}

.login-footer a,
.register-footer a {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover,
.register-footer a:hover {
    color: #059669;
}

/* Button Row */
.button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.button-row button {
    padding: 12px 16px;
}

/* Tablet/Medium Screens */
@media (max-width: 768px) {
    .modern-login-container,
    .modern-register-container {
        max-width: 90%;
    }

    .auth-layout-container {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 90%;
    }

    .auth-logo-section {
        display: flex;
    }

    .auth-logo-card {
        padding: 30px;
    }

    .login-header,
    .register-header {
        padding: 35px 25px;
    }

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

    .login-body,
    .register-body {
        padding: 30px 25px;
    }

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

/* Mobile Screens */
@media (max-width: 576px) {
    .modern-login-wrapper,
    .modern-register-wrapper {
        padding: 15px;
    }

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

    .auth-layout-container {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
    }

    .auth-logo-section {
        display: none;
    }

    .auth-form-section {
        width: 100%;
    }

    .login-header,
    .register-header {
        padding: 30px 20px;
    }

    .login-header h2,
    .register-header h2 {
        font-size: 22px;
        margin-bottom: 6px;
    }

    .login-header p,
    .register-header p {
        font-size: 13px;
    }

    .login-body,
    .register-body {
        padding: 25px 20px;
    }

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

    .form-control,
    .select2-simple {
        padding: 10px 14px;
        font-size: 14px;
    }

    .btn-login,
    .btn-register,
    .btn-secondary-register {
        padding: 10px 20px;
        font-size: 14px;
        margin-top: 8px;
    }

    .btn-social {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }

    .btn-social i {
        font-size: 16px;
    }

    .checkbox-wrapper {
        gap: 6px;
    }

    .checkbox-wrapper input {
        width: 16px;
        height: 16px;
    }

    .checkbox-wrapper label {
        font-size: 13px;
    }

    .forgot-password a {
        font-size: 12px;
    }

    .divider-text::before,
    .divider-text::after {
        width: 35%;
    }

    .button-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .login-footer,
    .register-footer {
        font-size: 13px;
        padding-top: 15px;
        margin-top: 15px;
    }

    textarea.form-control {
        min-height: 80px;
    }

    .password-toggle-btn {
        right: 10px;
        font-size: 16px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .login-header h2,
    .register-header h2 {
        font-size: 20px;
    }

    .form-control,
    .select2-simple {
        font-size: 13px;
        padding: 9px 12px;
    }

    .btn-login,
    .btn-register,
    .btn-secondary-register {
        font-size: 13px;
        padding: 9px 16px;
    }

    .divider-text {
        font-size: 12px;
    }

    .password-input-group .form-control {
        padding-right: 40px;
    }

    .password-toggle-btn {
        right: 8px;
        font-size: 14px;
        padding: 6px 8px;
    }
}
