﻿/* Login Container */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0;
    margin: 0;
}

/* Hero Background Section */
.hero-background {
    position: relative;
    width: 100%;
    max-height: 250px;
    overflow: hidden;
}

.background-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-logo {
    height: 120px;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.hero-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    color: white;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* Login Card */
.login-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    margin: -30px 20px 20px 20px;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
    z-index: 10;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-header {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    padding: 25px;
    text-align: center;
}

    .card-header h2 {
        margin: 0 0 5px 0;
        font-size: 1.6rem;
        font-weight: 700;
    }

    .card-header p {
        margin: 0;
        font-size: 0.95rem;
        opacity: 0.95;
    }

/* Login Form */
.login-form {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
}

.password-toggle:focus {
    outline: none;
}

    .form-input:focus {
        outline: none;
        border-color: #ff9900;
        box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
    }

    .form-input::placeholder {
        color: #adb5bd;
    }

/* Button Group */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-icon {
    font-size: 1.3rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.btn-secondary {
    background: white;
    color: #ff9900;
    border: 2px solid #ff9900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .btn-secondary:hover {
        background: #fff3e0;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 153, 0, 0.2);
    }

    .btn-secondary:active {
        transform: translateY(0);
    }

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.forgot-link {
    color: #ff9900;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .forgot-link:hover {
        color: #ff6600;
        text-decoration: underline;
    }

/* Login Footer */
.login-footer {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

    .login-footer p {
        margin: 0;
    }

/* Responsive Design for Tablets */
@media (min-width: 768px) {
    .hero-background {
        max-height: 350px;
    }

    .background-img {
        height: 350px;
    }

    .hero-logo {
        height: 80px;
        margin-bottom: 15px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .login-card {
        margin: -50px 20px 30px 20px;
    }

    .card-header {
        padding: 30px;
    }

        .card-header h2 {
            font-size: 1.8rem;
        }

    .login-form {
        padding: 35px;
    }

    .button-group {
        flex-direction: row;
    }

    .btn {
        width: auto;
        flex: 1;
    }
}

/* Responsive Design for Desktop */
@media (min-width: 1024px) {
    .hero-background {
        max-height: 400px;
    }

    .background-img {
        height: 400px;
    }

    .hero-logo {
        height: 100px;
    }

    .login-card {
        max-width: 480px;
    }
}

/* Small Mobile Optimization */
@media (max-width: 400px) {
    .hero-background {
        max-height: 200px;
    }

    .background-img {
        height: 200px;
    }

    .hero-logo {
        height: 50px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .login-form {
        padding: 20px;
    }

    .card-header {
        padding: 20px;
    }
}

/* Legacy compatibility - hide old elements */
.image-wrapper {
    display: none;
}

.ttable,
.trow,
.tcell,
.tlbl {
    display: none;
}

.table-border {
    display: none;
}

.imagediv {
    display: none;
}
