/* Landing Pages Styles - Home, Login, Register */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow: hidden;
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
}

/* Home Page */
.home-body {
    overflow: hidden !important;
    animation: fadeIn 0.6s ease-in;
}

.home-page {
    overflow: hidden !important;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: url('/images/background.jpg') center/cover no-repeat fixed;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Topbar */
.home-topbar {
    height: 37px;
    background: #d9d9d9;
    opacity: 0.85;
    animation: slideDown 0.5s ease-out;
}

/* Header */
.home-page > .home-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 32px;
    background: #d9d9d9;
    animation: slideDown 0.7s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.9s ease-out;
    transition: transform 0.3s ease;
}

.home-logo:hover {
    transform: scale(1.05);
}

.home-logo-mark {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.home-logo-text {
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 800;
    color: #9eca2d;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Navigation */
.home-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    animation: slideDown 1s ease-out;
}

.home-nav-link {
    color: #1a6b9c;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 12px;
    border-radius: 6px;
}

.home-nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #9eca2d, #1a6b9c);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.home-nav-link:hover {
    color: #0d5075;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.home-nav-link:hover::before {
    width: 80%;
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    display: inline-flex;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.lang-trigger svg {
    transition: transform 0.3s ease;
}

.lang-switcher.active .lang-trigger svg {
    transform: rotate(180deg);
}

.lang-switcher.active .lang-trigger {
    color: #0d5075;
    background: rgba(255, 255, 255, 0.5);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.lang-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.lang-menu form {
    margin: 0;
    padding: 0;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: inherit;
    font-weight: 500;
    color: #333;
    transition: background 0.2s ease;
    text-align: left;
}

.lang-option:hover {
    background: #f0f7e6;
    color: #1a6b9c;
}

.lang-flag {
    font-size: 20px;
    line-height: 1;
}

/* Actions */
.home-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 1.2s ease-out;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid #b4b4b4;
    border-radius: 4px;
    background: #ffffff;
    color: #666666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.home-btn:hover::before {
    width: 300px;
    height: 300px;
}

.home-btn:hover {
    transform: translateY(-3px) scale(1.05);
}

.home-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.home-btn[href="/Landing/Login"] {
    background: linear-gradient(135deg, #1a6b9c 0%, #0d5075 100%) !important;
    color: white;
    border: none;
}

.home-btn[href="/Landing/Register"] {
    background: linear-gradient(135deg, #9eca2d 0%, #8ab929 100%) !important;
    color: white;
    border: none;
}

.home-btn-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.home-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid #b4b4b4;
    border-radius: 4px;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.home-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.home-icon-btn:hover .home-icon {
    transform: scale(1.2);
}

/* Hero Section */
.home-hero {
    text-align: center;
    padding: 80px 24px 140px;
    animation: slideUp 1s ease-out 0.3s both;
}

.home-title {
    font-family: "Montserrat", sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 24px;
    animation: slideUp 1.2s ease-out 0.5s both;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.home-title:hover {
    transform: scale(1.02);
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
}

.home-subtitle {
    font-family: "Montserrat", sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #ffffff;
    line-height: 1.5;
    max-width: 740px;
    margin: 0 auto 28px;
    animation: slideUp 1.2s ease-out 0.7s both;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.home-cta {
    display: inline-block;
    padding: 10px 28px;
    background: #9eca2d;
    color: #ffffff;
    text-decoration: none;
    border-radius: 14px;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 600;
    animation: scaleIn 0.8s ease-out 1s both;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 6px 20px rgba(158, 202, 45, 0.4);
    position: relative;
    overflow: hidden;
}

.home-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.home-cta:hover::before {
    left: 100%;
}

.home-cta:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 30px rgba(158, 202, 45, 0.6);
    background: #8ab929;
    animation: float 2s ease-in-out infinite;
}

.home-cta:active {
    transform: translateY(-2px) scale(1.05);
}

.home-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11, 75, 107, 0.3) 0%, rgba(11, 75, 107, 0.5) 50%, rgba(11, 75, 107, 0.7) 100%);
    pointer-events: none;
    animation: fadeIn 1s ease-in;
}

.home-page > * {
    position: relative;
    z-index: 1;
}

/* Login & Register Pages */
.login-body,
.register-body {
    min-height: 100vh;
    background: url('/images/background.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: "Montserrat", sans-serif;
}

.login-container {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 50px 60px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-title {
    text-align: center;
    font-size: 28px;
    color: #333;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(224, 224, 224, 0.8);
    border-radius: 8px;
    font-size: 15px;
    color: #555;
    font-family: "Montserrat", sans-serif;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #1a6b9c;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 107, 156, 0.15);
}

.form-group input::placeholder {
    color: #999;
}

.form-actions {
    margin-top: 35px;
}

.btn {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login {
    background: linear-gradient(135deg, #1a6b9c 0%, #0d5075 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 107, 156, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 107, 156, 0.4);
}

.btn-secondary {
    background: #d0d0d0;
    color: #333;
    margin-top: 12px;
}

.btn-secondary:hover {
    background: #c0c0c0;
}

.form-divider {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: #999;
    font-size: 13px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(224, 224, 224, 0.6);
}

.form-divider::before {
    margin-right: 15px;
}

.form-divider::after {
    margin-left: 15px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-link a {
    color: #1a6b9c;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.register-link a:hover {
    color: #0d5075;
    text-decoration: underline;
}

.alert {
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

/* Register Page */
.register-container {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 40px;
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.progress-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.progress-line {
    width: 120px;
    height: 10px;
    border-radius: 20px;
    background: #d0d0d0;
    transition: background 0.3s ease;
}

.progress-line.active,
.progress-line.completed {
    background: #a7cf41;
}

.register-form-wrapper {
    position: relative;
}

.register-step {
    display: none;
}

.register-step.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="file"] {
    padding: 12px 14px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    color: #555;
    font-family: "Montserrat", sans-serif;
    transition: all 0.2s;
}

.form-group input[type="file"] {
    cursor: pointer;
}

.form-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 107, 156, 0.1);
}

.form-group input[type="file"]:hover {
    background: white;
}

.form-group input[type="file"]::file-selector-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    background: #a7cf41;
    color: white;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #96bb37;
}

.form-group input::placeholder {
    color: #999;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ddd;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #a7cf41;
    color: white;
}

.btn-primary:hover {
    background: #96bb37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(167, 207, 65, 0.3);
}

.btn-secondary {
    background: #d0d0d0;
    color: #333;
}

.btn-secondary:hover {
    background: #c0c0c0;
}

.btn-back {
    background: #c9d9e8;
    color: #333;
}

.btn-back:hover {
    background: #b9c9d8;
}

.step-title {
    color: #555;
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 1024px) {
    .home-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .home-title {
        font-size: 40px;
    }

    .home-subtitle {
        font-size: 22px;
    }

    .home-hero {
        padding: 120px 16px 100px;
    }

    .home-logo-mark {
        width: 70px;
        height: 70px;
    }

    .home-logo-text {
        font-size: 36px;
    }

    .home-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .login-container {
        padding: 40px 30px;
    }

    .register-container {
        padding: 25px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .progress-indicator {
        gap: 10px;
        margin-bottom: 30px;
    }

    .progress-line {
        width: 80px;
        height: 8px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}