/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f5f6f7;
    color:#333;
    font-family:
            -apple-system,
            BlinkMacSystemFont,
            "Segoe UI",
            Roboto,
            Helvetica,
            Arial,
            sans-serif;
}

/* =========================
   HEADING TYPOGRAPHY
========================= */

h1,h2,h3,h4,h5,h6{
    font-weight:600;
    color:#1f2937;
    line-height:1.35;
    margin-bottom:12px;
}

/* Tiêu đề trang */

h1{
    font-size:32px;
    font-weight:700;
    margin-bottom:18px;
}

/* Tiêu đề section */

h2{
    font-size:26px;
    margin-bottom:16px;
}

/* Tiêu đề block */

h3{
    font-size:20px;
}

/* Tiêu đề nhỏ */

h4{
    font-size:18px;
}

/* label lớn */

h5{
    font-size:16px;
}

/* label nhỏ */

h6{
    font-size:14px;
    color:#666;
}

p{
    font-size:15px;
    line-height:1.6;
    margin-bottom:12px;
    color:#444;
}
ul{
    padding-left:18px;
    margin-bottom:15px;
}

li{
    margin-bottom:6px;
}
a{
    color:#0a66c2;
    text-decoration:none;
}

a:hover{
    text-decoration:underline;
}

/* CONTAINER */
.container{
    max-width:1200px;
    margin:auto;
    padding:0 15px;
}

/* HEADER */

.header{
    background:white;
    border-bottom:1px solid #eee;
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:15px 0;
}

.logo a{
    font-size:22px;
    font-weight:bold;
    color:#0a66c2;
    text-decoration:none;
}

.menu a{
    margin:0 15px;
    text-decoration:none;
    color:#333;
}

.header-btn a{
    margin-left:10px;
}

.section-title{
    font-size:26px;
    font-weight:700;
    margin-bottom:20px;
}

.btn-primary{
    background:#0a66c2;
    color:white;
    padding:8px 16px;
    border-radius:5px;
    text-decoration:none;
}

.btn-outline{
    border:1px solid #0a66c2;
    color:#0a66c2;
    padding:8px 16px;
    border-radius:5px;
    text-decoration:none;
}


/* HERO */

.hero{
    background:#0a66c2;
    color:white;
    padding:70px 0;
    text-align:center;
}

.search-box{
    margin-top:20px;
    display:flex;
    justify-content:center;
    gap:10px;
}

.search-box input{
    padding:12px;
    width:250px;
    border:none;
    border-radius:4px;
}

.search-box button{
    padding:12px 20px;
    background:#ff9800;
    border:none;
    color:white;
    border-radius:4px;
    cursor:pointer;
}


/* JOB SECTION */

.jobs-featured{
    padding:50px 0;
}


/* GRID */

.job-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}


/* CARD */

.job-card{

    display:flex;
    align-items:flex-start;
    gap:15px;

    background:white;
    border-radius:10px;
    border:1px solid #e6e6e6;

    padding:16px;

    transition:0.2s;

}

.job-card:hover{
    box-shadow:0 4px 12px rgba(0,0,0,0.08);
    border-color:#1e88e5;
}


/* LOGO */

.job-logo{
    flex-shrink:0;
}

.job-logo img{
    width:60px;
    height:60px;
    object-fit:contain;
}


/* INFO */

.job-info{
    flex:1;
    min-width:0;
}

.job-title{
    font-size:16px;
    font-weight:600;
    color:#0a66c2;
    margin-bottom:5px;
}

.company{
    font-size:14px;
    color:#666;
    margin-bottom:6px;
}


/* META */

.job-meta{
    display:flex;
    gap:15px;
    font-size:14px;
    margin-bottom:6px;
}

.salary{
    color:#1e88e5;
    font-weight:600;
}

.location{
    color:#444;
}


/* TAG */

.job-tags{
    margin-top:5px;
}

.tag{
    background:#f1f1f1;
    padding:3px 8px;
    border-radius:4px;
    font-size:12px;
    margin-right:5px;
}

.tag.hot{
    color:#ff5722;
    background:#fff2ee;
}


/* RIGHT */

.job-right{

    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:8px;

}

.save{
    font-size:18px;
    cursor:pointer;
    color:#bbb;
}
.save.active{
    color:#ff4d4f;
}
.deadline{
    font-size:13px;
    color:#777;
}

/* MOBILE */

@media(max-width:768px){

    .menu{
        display:none;
    }

    .search-box{
        flex-direction:column;
    }

    .search-box input{
        width:100%;
    }

    .job-grid{
        grid-template-columns:1fr;
    }

    .job-card{
        flex-direction:column;
    }

    .job-right{
        flex-direction:row;
        justify-content:space-between;
        width:100%;
    }

}

/* =========================
CATEGORIES
========================= */

.categories{
    padding:60px 0;
    background:#fff;
}

.categories h2{
    font-size:24px;
    margin-bottom:25px;
}

.category-grid{

    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:15px;

}

.category-grid a{

    display:block;

    padding:14px 10px;

    border-radius:8px;
    border:1px solid #e6e6e6;

    background:#fafafa;

    text-align:center;

    font-size:14px;
    color:#333;
    text-decoration:none;

    transition:0.2s;

}

.category-grid a:hover{

    border-color:#0a66c2;
    color:#0a66c2;
    background:#f5f9ff;

}

/* =========================
LATEST JOBS
========================= */

.jobs-latest{
    padding:60px 0;
    background:#f5f6f7;
}

.jobs-latest h2{
    font-size:24px;
    margin-bottom:25px;
}

.job-list{
    list-style:none;
    background:white;
    border-radius:10px;
    border:1px solid #e6e6e6;
    overflow:hidden;
}

.job-list li{

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:16px 20px;

    border-bottom:1px solid #eee;

}

.job-list li:last-child{
    border-bottom:none;
}

.job-list h3{
    font-size:16px;
    color:#0a66c2;
}

.job-list span{

    font-size:14px;
    color:#555;
    margin-left:20px;

}

.job-list a{

    background:#0a66c2;
    color:white;

    padding:6px 14px;

    border-radius:5px;
    font-size:13px;

    text-decoration:none;

    transition:0.2s;

}

.job-list a:hover{
    background:#084d96;
}

/* =========================
CTA RECRUITER
========================= */

.cta{

    padding:70px 0;

    background:#0a66c2;
    color:white;

    text-align:center;

}

.cta h2{

    font-size:28px;
    margin-bottom:10px;

}

.cta p{

    font-size:16px;
    margin-bottom:25px;

}

.cta .btn-primary{

    background:#ff9800;
    padding:12px 25px;
    font-size:16px;

}

/* =========================
FOOTER
========================= */

.footer{

    background:#1f2933;
    color:#ccc;

    padding:30px 0;

    text-align:center;

}

.footer p{
    font-size:14px;
}

/* =========================
MOBILE
========================= */

@media(max-width:768px){
    h1{
        font-size:26px;
    }

    h2{
        font-size:22px;
    }

    h3{
        font-size:18px;
    }

    h4{
        font-size:16px;
    }
    .category-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .job-list li{

        flex-direction:column;
        align-items:flex-start;
        gap:10px;

    }

    .job-list span{
        margin-left:0;
    }

    .job-list a{
        align-self:flex-end;
    }

    .cta h2{
        font-size:22px;
    }

}

/* ===============================
AUTH POPUP
=============================== */

.auth-overlay{

    position:fixed;
    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,0.5);

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:0.3s;

    z-index:9999;

}

.auth-overlay.active{
    opacity:1;
    visibility:visible;
}


/* POPUP */

.auth-popup{

    background:#fff;

    width:420px;

    padding:30px;

    border-radius:12px;

    position:relative;

    box-shadow:0 20px 60px rgba(0,0,0,0.2);

}


/* CLOSE */

.auth-close{

    position:absolute;
    right:15px;
    top:10px;

    font-size:22px;

    cursor:pointer;

}


/* ===============================
TABS
=============================== */

.auth-tabs{

    position:relative;

    display:flex;

    background:#f3f5fb;

    border-radius:10px;

    padding:4px;

    margin-bottom:20px;

}


/* TAB BUTTON */

.auth-tab{

    flex:1;

    padding:12px;

    border:none;

    background:none;

    font-weight:600;

    font-size:15px;

    cursor:pointer;

    color:#555;

    z-index:2;

    transition:.3s;

}

.auth-tab.active{
    color:#fff;
}


/* SLIDER */

.tab-slider{

    position:absolute;

    top:4px;
    left:4px;

    width:50%;

    height:calc(100% - 8px);

    background:linear-gradient(135deg,#4f6df5,#2f55e7);

    border-radius:8px;

    transition:.3s;

}

.auth-tabs.register-active .tab-slider{
    transform:translateX(100%);
}


/* ===============================
FORM
=============================== */

.auth-pane{
    display:none;
    animation:fadeIn .3s ease;
}

.auth-pane.active{
    display:block;
}

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

/* INPUT */

.auth-pane input{

    width:100%;

    padding:12px;

    margin-bottom:12px;

    border:1px solid #ddd;

    border-radius:8px;

    font-size:14px;

}

.auth-pane input:focus{

    border-color:#3b6df6;

    outline:none;

}

/* BUTTON */

.btn-auth{

    width:100%;

    padding:13px;

    border:none;

    border-radius:8px;

    background:linear-gradient(135deg,#4f6df5,#2f55e7);

    color:#fff;

    font-weight:600;

    cursor:pointer;

}

.btn-auth:hover{
    opacity:0.95;
}

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

.error{
    color:#e74c3c;
    font-size:13px;
    margin-top:4px;
}

.error-general{
    color:#e53935;
    font-size:14px;
    margin:8px 0;
}

.error-input{
    border:1px solid #e53935 !important;
    background:#fff5f5;
}
@keyframes shake{
    0%{transform:translateX(0)}
    25%{transform:translateX(-5px)}
    50%{transform:translateX(5px)}
    75%{transform:translateX(-5px)}
    100%{transform:translateX(0)}
}

.shake{
    animation:shake .4s;
}

.forgot-link{
    text-align:right;
    margin:10px 0 15px;
    font-size:14px;
}

.forgot-link a{
    color:#2563eb;
    text-decoration:none;
}

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

.back-login{
    text-align:center;
    margin-top:15px;
}

.back-login a{
    font-size:14px;
    color:#2563eb;
}