/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #004AAD;
    --secondary-color: #0066cc;
    --accent-color: #FF6600;
    --text-color: #333;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #444;
    --white: #ffffff;
    --error: #dc3545;
    --success: #28a745;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --card-radius: 16px;
    --btn-radius: 8px;
    --input-radius: 6px;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--light-gray);
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.top-bar {
    background-color: var(--white);
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info a {
    color: var(--dark-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.contact-info a i {
    margin-right: 5px;
    color: var(--primary-color);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.login-digital {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-btn {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    color: var(--dark-gray);
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.login-btn:hover, .login-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.apply-link {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.apply-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition);
}

.apply-link:hover::after {
    width: 100%;
}

/* Main Header */
.main-header {
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

.main-nav ul li {
    position: relative;
}

.main-nav ul li a {
    color: var(--dark-gray);
    font-weight: 500;
    text-decoration: none;
    padding: 5px 0;
    position: relative;
    transition: var(--transition);
    display: block;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition);
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: 4px;
    z-index: 1;
    animation: fadeIn 0.3s ease-out;
    transform-origin: top center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

.dropdown-content a {
    padding: 10px 15px;
    display: block;
    white-space: nowrap;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.mobile-menu ul {
    list-style: none;
    text-align: center;
}

.mobile-menu ul li {
    margin: 20px 0;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.4s ease forwards;
}

.mobile-menu.active ul li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.active ul li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu.active ul li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu.active ul li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu.active ul li:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu.active ul li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-menu ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.mobile-menu ul li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Login Section Styles */
.login-section {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.login-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 74, 173, 0.1);
    top: -150px;
    left: -150px;
    border-radius: 50%;
    animation: float 15s infinite alternate ease-in-out;
}

.login-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255, 102, 0, 0.1);
    bottom: -200px;
    right: -200px;
    border-radius: 50%;
    animation: float 20s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

.login-container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.login-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card-left {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.login-card-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/pattern.png') repeat;
    opacity: 0.05;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo img {
    height: 70px;
    background-color: white;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-card-left h2 {
    font-size: 28px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.7s ease-out;
}

.login-card-left p {
    opacity: 0.9;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.8s ease-out;
}

.login-features {
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    animation: slideInLeft 0.5s ease-out;
    animation-fill-mode: both;
}

.feature-item:nth-child(1) { animation-delay: 0.3s; }
.feature-item:nth-child(2) { animation-delay: 0.5s; }
.feature-item:nth-child(3) { animation-delay: 0.7s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    background-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg);
}

.feature-text h3 {
    font-size: 16px;
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 0;
}

.login-help {
    margin-top: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeUp 1s ease-out;
}

.login-help p {
    margin-bottom: 5px;
    font-size: 14px;
}

.register-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.register-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.register-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.login-card-right {
    padding: 40px;
    background-color: white;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeUp 0.6s ease-out;
}

.form-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--dark-gray);
    font-size: 14px;
}

.login-form .form-group {
    margin-bottom: 20px;
    animation: fadeUp 0.7s ease-out;
}

.login-form .form-group:nth-child(2) {
    animation-delay: 0.1s;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-gray);
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
    transition: var(--transition);
}

.input-with-icon input:focus + i {
    color: var(--primary-color);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: var(--input-radius);
    font-size: 14px;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.1);
    outline: none;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--primary-color);
}

.form-error {
    display: block;
    color: var(--error);
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
    height: 15px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    animation: fadeUp 0.8s ease-out;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--primary-color);
}

.remember-me label {
    margin-bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.login-btn-submit {
    width: 100%;
    padding: 12px 15px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--btn-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.9s ease-out;
}

.login-btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.login-btn-submit:hover::before {
    left: 100%;
}

.login-btn-submit:hover {
    box-shadow: 0 5px 15px rgba(0, 74, 173, 0.3);
    transform: translateY(-2px);
}

.login-btn-submit:active {
    transform: translateY(1px);
}

.btn-text {
    z-index: 1;
    margin-right: 10px;
}

.btn-icon {
    display: inline-flex;
    z-index: 1;
    transition: transform 0.3s ease;
}

.login-btn-submit:hover .btn-icon {
    transform: translateX(5px);
}

.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 30px 0;
    animation: fadeUp 1s ease-out;
}

.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.or-divider span {
    padding: 0 15px;
    color: var(--dark-gray);
    font-size: 14px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    animation: fadeUp 1.1s ease-out;
}

.social-btn {
    padding: 10px 20px;
    border: 1px solid #e0e0e0;
    border-radius: var(--btn-radius);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.social-btn img,
.social-btn i {
    margin-right: 10px;
}

.social-btn.google {
    color: #4285F4;
}

.social-btn.google img {
    height: 20px;
}

.social-btn.facebook {
    color: #3b5998;
}

.social-btn.facebook i {
    font-size: 20px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.social-btn.google:hover {
    border-color: #4285F4;
}

.social-btn.facebook:hover {
    border-color: #3b5998;
}

/* Footer Styles */
footer {
    background-color: var(--light-gray);
    padding-top: 50px;
}

.footer-top {
    padding-bottom: 40px;
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition);
}

.footer-column:hover h3::after {
    width: 100%;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-column p {
    color: var(--text-color);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-column p i {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px) rotate(5deg);
}

.footer-bottom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--white);
    font-size: 14px;
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer-links a:hover {
    opacity: 0.8;
}

.copyright {
    font-size: 14px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }
    
    .login-card {
        grid-template-columns: 1fr;
    }
    
    .login-card-left {
        padding: 30px;
        order: 2;
    }
    
    .login-card-right {
        order: 1;
    }
    
    .login-features {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 10px;
    }

    .contact-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .login-digital {
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
    }
    
    .login-card {
        padding: 20px;
    }
    
    .login-card-left, 
    .login-card-right {
        padding: 30px 20px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-bottom .container {
        flex-direction: column;
    }
    
    .footer-links {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .or-divider {
        margin: 20px 0;
    }
    
    .login-section {
        padding: 30px 0;
    }
    
    .login-card-left h2 {
        font-size: 24px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
}

/* Animation for shake effect on invalid input */
@keyframes shake {
    0%, 100% {transform: translateX(0);}
    10%, 30%, 50%, 70%, 90% {transform: translateX(-5px);}
    20%, 40%, 60%, 80% {transform: translateX(5px);}
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Loading spinner for button */
.login-btn-submit.loading .btn-text {
    visibility: hidden;
}

.login-btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    to {transform: rotate(360deg);}
} 