@font-face {
    font-family: 'Filson Soft';
    src: url('../fonts/Filson-Soft-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Filson Soft';
    src: url('../fonts/Filson-Soft-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Filson Soft';
    src: url('../fonts/Filson-Soft-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
body,
.tam-wrapper,
.tam-wrapper * {
    font-family: 'Filson Soft', sans-serif !important;
}
.tam-wrapper * { 
    box-sizing: border-box;
}
.tam-wrapper * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.tam-wrapper { display: flex; justify-content: center; align-items: center; padding: 40px 0px; background-color: #f8f9fa; }
.tam-login-container { display: flex; max-width: 1100px; width: 100%; background: #ffffff; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.tam-login-left { flex: 1; padding: 60px; }
.tam-title { color: #163e79; font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.tam-subtitle { color: #757575; font-size: 1.1rem; line-height: 1.5; margin-bottom: 40px; }
.tam-form-group { margin-bottom: 25px; }
.tam-form-group input{    padding: 0.5rem 3rem !important;}
.tam-form-group label { display: block; font-weight: 700; color: #111; margin-bottom: 8px; }
.tam-input-wrapper { position: relative; display: flex; align-items: center; }
.tam-icon { position: absolute; left: 15px; width: 22px; color: #163e79; }
.tam-input-wrapper input { width: 100%; padding: 16px 16px 16px 50px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; }
.tam-input-wrapper input:focus { outline: none; border-color: #163e79; box-shadow: 0 0 0 3px rgba(22, 62, 121, 0.1); }
.tam-form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.tam-forgot-link { color: #163e79; font-weight: 700; text-decoration: none; }
.tam-btn-primary { background: #f16e00 !important; color: #ffffff !important; border: none !important; padding: 16px 30px !important; font-size: 1.1rem !important; font-weight: 700 !important; border-radius: 8px !important; cursor: pointer !important; transition: 0.3s !important; }
.tam-btn-primary:hover { background: #d96300 !important; }
.tam-btn-outline { display: block; background: transparent; color: #ffffff; border: 2px solid #ffffff; padding: 14px 30px; font-size: 1.1rem; font-weight: 700; border-radius: 8px; text-decoration: none; text-align: center; }
.tam-login-right { flex: 0.8; background: #163e79; padding: 50px; color: #ffffff; display: flex; flex-direction: column; justify-content: center; }
.tam-login-right h2 { font-size: 2.2rem; margin-bottom: 40px; }
.tam-feature-box { background: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 15px; margin-bottom: 20px; display: flex; align-items: center; }
.tam-alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: bold; }
.tam-alert-danger { background: #fee2e2; color: #991b1b; }
.tam-alert-success { background: #dcfce3; color: #166534; }
@media (max-width: 900px) { .tam-login-container { flex-direction: column; } }.tam-select { width: 100%; padding: 16px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; color: #333; background: #fff; cursor:pointer;}
.tam-select:focus { outline: none; border-color: #163e79; }
.tam-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tam-login-right h3 {
    font-size: 1.2rem;
    padding: 0;margin-bottom:0.5rem;}
@media (max-width: 768px) { .tam-grid-2 { grid-template-columns: 1fr; } .tam-login-left, .tam-login-right { padding: 20px; } }
.tam-forgot-link {
    text-decoration: none !important;
    color: #12499F !important;
}.tam-btn-outline {
     text-decoration: none !important;
    color: #ffffff !important;
}

/* Container alignment */
.tam-radio-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Hide default checkbox */
.tam-radio-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #12499F;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

/* Perfectly centered inner circle */
.tam-radio-container input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #12499F;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease;
}

/* Show inner circle when checked */
.tam-radio-container input[type="checkbox"]:checked::after {
    transform: translate(-50%, -50%) scale(1);
}

.tam-register-form .tam-input-wrapper input {
    padding: 16px !important; 
}

/* Beautiful styling for the form section headings */
.tam-section-title {
    color: #163e79;
    font-size: 1.3rem;
    margin-top: 35px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    font-weight: 700;
}

/* Because the register form is very tall, align the right-side blue column content near the top */
.tam-register-container .tam-login-right {
    justify-content: flex-start;
    padding-top: 60px;
}

/* Clean standard checkbox for marketing preference */
.tam-standard-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    font-size: 0.95rem;
}
.tam-standard-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #163e79; /* Styles the tick-box blue matching theme */
}
/* =========================================
   MOBILE RESPONSIVE STYLES 
   ========================================= */

@media (max-width: 900px) {
    /* Add padding to wrapper so the box doesn't touch the phone screen edges */
    .tam-wrapper { 
        padding: 5px 5px; 
    }
    
    /* Stack the left and right sections vertically */
    .tam-login-container { 
        flex-direction: column; 
    }
    
    /* Adjust internal padding for tablets/phones */
    .tam-login-left, 
    .tam-login-right { 
        padding: 40px 25px; 
    }
    
    /* Ensure the right section doesn't have massive top padding on mobile */
    .tam-register-container .tam-login-right {
        padding-top: 40px;
    }
}

@media (max-width: 768px) {
    /* Break the 2-column grid into 1 column for phones */
    .tam-grid-2 { 
        grid-template-columns: 1fr; 
        gap: 15px; /* Slightly tighter gap on mobile */
    }
    
    .tam-grid-2 .tam-form-group[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }

    /* Scale down typography for smaller screens */
    .tam-title { 
        font-size: 1.8rem; 
    }
    
    .tam-subtitle { 
        font-size: 1rem; 
        margin-bottom: 25px; 
    }
    
    .tam-section-title {
        font-size: 1.2rem;
        margin-top: 25px;
    }

    .tam-login-right h2 { 
        font-size: 1.8rem; 
        margin-bottom: 30px; 
    }
    
    .tam-feature-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .tam-feature-box img {
        padding-right: 0 !important;
        margin-bottom: 10px;
    }

    /* Make inputs and buttons touch-friendly */
    .tam-input-wrapper input, 
    .tam-select {
        padding: 14px !important; 
        font-size: 16px; /* Prevents auto-zoom on iOS Safari */
    }
    
    .tam-btn-primary, 
    .tam-btn-outline {
        padding: 14px 20px !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Even tighter padding for very small devices like iPhone SE */
    .tam-login-left, 
    .tam-login-right { 
        padding: 30px 20px; 
    }
}