/* Additional custom styles for job portal */

/* Hero background pattern */
.hero-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cdefs%3E%3Cpattern id='grid' width='10' height='10' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 10 0 L 0 0 0 10' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100' height='20' fill='url(%23grid)'/%3E%3C/svg%3E");
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1d8fe1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d7ace;
}

/* Animation classes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.6s ease-out;
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Job card hover effect */
.job-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.job-card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Category icon animation */
.category-icon {
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Step number pulse effect */
.step-number {
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.step:hover .step-number::before {
    width: 120%;
    height: 120%;
}

/* Form focus effects */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(29, 143, 225, 0.1);
    border-color: #1d8fe1;
}

/* Loading animation for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-full {
        width: 100% !important;
    }
}

/* ========================================
   Authentication & Form Styles
   ======================================== */

/* Auth container */
.auth-container {
    min-height: 100vh;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .auth-container {
        padding: 3rem 0;
    }
}

/* Auth card */
.auth-card {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    background-color: white;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .auth-card {
        border: 1px solid #e5e7eb;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        border-radius: 1rem;
        padding: 2rem;
    }
}

/* Auth form */
.auth-form {
    width: 100%;
}

@media (min-width: 768px) {
    .auth-form {
        width: 50%;
        margin: 0 auto;
    }
}

/* Auth icon wrapper */
.auth-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #1d8fe1;
}

/* Auth title */
.auth-title {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 1.875rem;
    font-weight: bold;
    color: #111827;
}

/* Auth subtitle */
.auth-subtitle {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Form input */
.form-input {
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    color: #111827;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 143, 225, 0.1);
    border-color: #1d8fe1;
    z-index: 10;
}

/* Form label */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Primary button */
.btn-primary {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    color: white;
    background-color: #1d8fe1;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #0d7ace;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 143, 225, 0.5);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Secondary button */
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

/* Divider */
.auth-divider {
    position: relative;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.auth-divider::before {
    width: 100%;
    border-top: 1px solid #d1d5db;
}

.auth-divider-text {
    position: relative;
    display: flex;
    justify-content: center;
    font-size: 0.875rem;
    padding: 0 0.5rem;
    background-color: white;
    color: #6b7280;
}

/* Link styling */
.link-primary {
    font-weight: 500;
    color: #1d8fe1;
    transition: opacity 0.3s ease;
}

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

/* Checkbox styling */
.form-checkbox {
    height: 1rem;
    width: 1rem;
    border-radius: 0.25rem;
    border: 1px solid #d1d5db;
    color: #1d8fe1;
}

.form-checkbox:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 143, 225, 0.1);
}

/* Error message */
.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
}

.modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.modal-content {
    background-color: white;
    border-radius: 1rem;
    max-width: 28rem;
    width: 100%;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Success icon */
.success-icon {
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    border-radius: 50%;
    background-color: #d1fae5;
    margin-bottom: 1rem;
}

.success-icon svg {
    height: 1.5rem;
    width: 1.5rem;
    color: #059669;
}

/* Modal title */
.modal-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 0.5rem;
}

/* Modal text */
.modal-text {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Social login buttons */
.btn-social {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: white;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.btn-social:hover {
    background-color: #f9fafb;
}

.btn-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-social span {
    margin-left: 0.5rem;
}