/* login.css */

:root {
    --primary-yellow: #E9C456;
    --primary-yellow-hover: #D8B241;
    --bg-dark: #2A2A2A;
    --card-bg: #FFFFFF;
    --header-bg: #FDFCF8;
    --footer-bg: #000000;
    --text-dark: #333333;
    --text-muted: #999999;
    --border-color: #CBD5E1;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: flex-end; /* Align card to the right on desktop */
    align-items: center;
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('Assets/PageBg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

.brand-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    height: 40px;
    z-index: 10;
}

.powered-logo {
    position: absolute;
    bottom: 20px;
    right: 30px;
    height: 20px;
    z-index: 10;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
    margin-right: 10%; /* Offset from the right edge */
    z-index: 10;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        justify-content: center;
    }
    .auth-container {
        margin-right: 0;
    }
    .login-background {
        background-image: url('Assets/PageBg_Mobile.png');
    }
    .brand-logo {
        top: 30px;
        left: 50%;
        transform: translateX(-50%);
    }
    .powered-logo {
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
}



.auth-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

/* Card Header Logo */
.card-logo-wrapper {
    display: none !important;
}

.card-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

/* Tab Switcher Pills */
.auth-tab-wrapper {
    display: flex;
    background-color: #EDF2F7;
    border-radius: 10px;
    padding: 5px;
    margin: 10px 20px 5px 20px;
    gap: 4px;
}

.auth-tab-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 7px;
    background: transparent;
    color: #718096;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.auth-tab-btn:hover {
    color: #2D3748;
}

.auth-tab-btn.active {
    background-color: #FFFFFF;
    color: #1A202C;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.auth-header {
    background-color: var(--header-bg);
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #F0ECE1;
}

.auth-header h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-dark);
}

.auth-body {
    padding: 15px 25px 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    width: 100%;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

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

.password-rules-box {
    margin-top: 8px;
    padding: 10px 12px;
    background-color: #FFF5F5;
    border: 1px solid #FEB2B2;
    border-radius: 6px;
    font-size: 12px;
    color: #C53030;
    transition: all 0.3s ease;
}

.password-rules-box.all-valid {
    background-color: #F0FFF4;
    border-color: #9AE6B4;
    color: #276749;
}

.password-rules-box .rules-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 12px;
}

.password-rules-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-rules-box li.rule-invalid {
    color: #E53E3E;
    font-weight: 500;
}

.password-rules-box li.rule-valid {
    color: #38A169;
    font-weight: 600;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: color 0.2s;
}

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

.auth-input {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #CBD5E1;
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font-family);
    color: #1A202C;
    background-color: #FFFFFF;
    outline: none;
    transition: all 0.2s ease;
}

.auth-input::placeholder {
    color: #718096;
    font-weight: 500;
    font-size: 14px;
}

.auth-input:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 3px rgba(233, 196, 86, 0.25);
}

.auth-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px top 50%;
    background-size: 10px auto;
    font-weight: 500;
}

.auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.auth-actions.right-align {
    justify-content: flex-end;
    gap: 15px;
}

.forgot-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
}

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

.btn-primary {
    background-color: var(--primary-yellow);
    color: var(--text-dark);
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    font-family: var(--font-family);
}

.btn-primary:hover {
    background-color: var(--primary-yellow-hover);
}

.btn-outline {
    background-color: transparent;
    color: #BDBDBD;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
}

.btn-outline:hover {
    border-color: #999;
    color: var(--text-dark);
}

.auth-footer {
    background-color: var(--footer-bg);
    padding: 20px;
    text-align: center;
}

.auth-footer p {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer a {
    color: var(--primary-yellow);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
}

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

/* Google Sign-in styles */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 15px 0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #EAEAEA;
}

.divider span {
    padding: 0 10px;
}

.btn-google {
    background-color: #FFFFFF;
    color: #3C4043;
    border: 1px solid #DADCE0;
    border-radius: 4px;
    padding: 12px 0px 12px 0px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.2s;
    font-family: var(--font-family);
    width: 100%;
}

.btn-google:hover {
    background-color: #F8F9FA;
}
