/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-top {
    background: #c41e3a;
    color: white;
    padding: 10px 0;
    font-size: 14px;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.available-text {
    font-size: 13px;
}

.play-store-badge {
    height: 25px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.separator {
    color: white;
    opacity: 0.7;
}

.header-main {
    padding: 20px 0;
}

/* Fixed Logo Styles for Better Mobile Responsiveness */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    min-height: 50px;
    position: relative;
    flex-wrap: nowrap;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

/* Logo text elements - using classes instead of inline styles */
.logo-dot {
    color: #e53e3e;
    font-size: 40px;
    font-weight: bold;
    margin-left: -15px;
    line-height: 1;
    flex-shrink: 0;
}

.logo-click {
    color: #1a4a5a;
    font-size: 15px;
    font-weight: bold;
    margin-left: -13px;
    font-family: Arial, sans-serif;
    line-height: 1;
    flex-shrink: 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #e8eef7 0%, #d1ddf0 100%);
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c5aa0;
    margin: 0;
}

/* Login Section */
.login-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.card-title {
    background: #c41e3a;
    color: white;
    margin: -40px -40px 30px -40px;
    padding: 20px 40px;
    border-radius: 12px 12px 0 0;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}

/* Advantages Section */
.advantages-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.advantages-list {
    list-style: none;
    margin-bottom: 30px;
}

.advantage-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: #555;
}

.checkmark {
    background: #28a745;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.required-asterisk {
    color: #c41e3a;
    font-weight: bold;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.password-container {
    position: relative;
}

.password-container .required-asterisk {
    right: 40px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.password-toggle:hover {
    background-color: #f8f9fa;
}

.eye-icon {
    font-size: 16px;
    opacity: 0.6;
}

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-link {
    color: #c41e3a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

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

/* Button Styles */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #c41e3a;
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .header-top .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .nav-link {
        font-size: 12px;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .auth-link {
        font-size: 12px;
    }
    
    /* Improved mobile logo responsiveness */
    .logo {
        height: auto;
        min-height: 40px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    
    .logo-image {
        height: 40px;
        max-width: 120px;
    }
    
    .logo-dot {
        font-size: 32px;
        margin-left: -12px;
    }
    
    .logo-click {
        font-size: 13px;
        margin-left: -10px;
    }
    
    .hero-title {
        font-size: 28px;
        padding: 0 20px;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }
    
    .card {
        padding: 30px 20px;
    }
    
    .card-title {
        margin: -30px -20px 25px -20px;
        padding: 15px 20px;
        font-size: 18px;
    }
    
    .advantages-list {
        margin-bottom: 20px;
    }
    
    .advantage-item {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .header-top {
        padding: 8px 0;
        font-size: 12px;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .nav-link {
        font-size: 11px;
    }
    
    .header-main {
        padding: 15px 0;
    }
    
    /* Enhanced mobile logo responsiveness for small screens */
    .logo {
        height: auto;
        min-height: 35px;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        padding: 0 10px;
    }
    
    .logo-image {
        height: 35px;
        max-width: 100px;
    }
    
    .logo-dot {
        font-size: 28px;
        margin-left: -10px;
    }
    
    .logo-click {
        font-size: 11px;
        margin-left: -8px;
    }
    
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 22px;
        padding: 0 15px;
    }
    
    .login-section {
        padding: 30px 0;
    }
    
    .card {
        padding: 20px 15px;
    }
    
    .card-title {
        margin: -20px -15px 20px -15px;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .advantages-title {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .advantage-item {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .checkmark {
        width: 18px;
        height: 18px;
        font-size: 11px;
        margin-right: 10px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .header-nav {
        gap: 8px;
    }
    
    .nav-link {
        font-size: 10px;
    }
    
    /* Ultra-small screen logo optimization */
    .logo {
        height: auto;
        min-height: 30px;
        padding: 0 8px;
    }
    
    .logo-image {
        height: 30px;
        max-width: 80px;
    }
    
    .logo-dot {
        font-size: 24px;
        margin-left: -8px;
    }
    
    .logo-click {
        font-size: 10px;
        margin-left: -6px;
    }
    
    .hero-title {
        font-size: 20px;
    }
    
    .card {
        padding: 15px 10px;
    }
    
    .card-title {
        margin: -15px -10px 15px -10px;
        padding: 10px;
        font-size: 14px;
    }
    
    .form-input {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* Jobs Page Specific Responsive Styles */
@media (max-width: 768px) {
    .search-bar {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .filter-sidebar {
        margin-bottom: 20px;
    }
    
    .filter-title {
        font-size: 16px;
    }
    
    .filter-option {
        font-size: 14px;
        padding: 8px 0;
    }
    
    .job-card {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .job-card h3 {
        font-size: 14px !important;
    }
    
    .job-card p {
        font-size: 12px !important;
    }
    
    .apply-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .search-bar {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .filter-sidebar {
        padding: 15px;
    }
    
    .filter-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .filter-option {
        font-size: 13px;
        padding: 6px 0;
    }
    
    .job-card {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .job-card h3 {
        font-size: 13px !important;
        line-height: 1.3;
    }
    
    .job-card p {
        font-size: 11px !important;
    }
    
    .job-card span {
        font-size: 10px !important;
        padding: 3px 6px !important;
    }
    
    .apply-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .grid.grid-cols-1.lg\\:grid-cols-4 {
        grid-template-columns: 1fr;
    }
    
    .lg\\:col-span-1,
    .lg\\:col-span-3 {
        grid-column: span 1;
    }
}

/* Footer Responsive Styles */
@media (max-width: 768px) {
    .grid.grid-cols-1.md\\:grid-cols-3 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .space-y-2 li {
        margin-bottom: 8px;
    }
    
    .text-2xl {
        font-size: 1.25rem;
    }
    
    .flex.justify-center.space-x-2 {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container.mx-auto.px-4.py-8 {
        padding: 20px 10px;
    }
    
    .text-lg.font-semibold.mb-4 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .space-y-2 li {
        margin-bottom: 6px;
    }
    
    .text-gray-300 {
        font-size: 13px;
    }
    
    .text-2xl {
        font-size: 1.1rem;
    }
    
    .flex.justify-center.space-x-2 {
        gap: 6px;
    }
    
    .text-sm.text-gray-300 {
        font-size: 11px;
    }
}