/* DUX Portal - Main Stylesheet */

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

html, body {
    height: 100%;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    color: #53565A;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ========== HEADER ========== */
header {
    background-color: #1A1A1A;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 32px;
    font-weight: 700;
    color: #C8102E;
    font-family: 'Roboto', sans-serif;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
}

/* ========== MAIN CONTENT ========== */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background-color: #F5F5F5;
    min-height: auto;
}

.login-container {
    background-color: #FFFFFF;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    padding: 30px 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 13px;
    font-weight: 500;
    color: #53565A;
}

.tagline {
    font-size: 11px;
    color: #C8102E;
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* ========== FORM STYLES ========== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    background-color: #FFFFFF;
    border: 1px solid #53565A;
    border-radius: 4px;
    color: #1A1A1A;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #002D72;
    border-width: 2px;
    padding: 9px 12px;
}

/* ========== BUTTON STYLES ========== */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

button {
    flex: 1;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #C8102E;
    color: #FFFFFF;
}

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

.btn-secondary {
    background-color: #FFFFFF;
    color: #002D72;
    border: 1px solid #002D72;
}

.btn-secondary:hover {
    background-color: #002D72;
    color: #FFFFFF;
}

/* ========== BADGES & MESSAGES ========== */
.coming-soon-badge {
    display: inline-block;
    background-color: #C8102E;
    color: #FFFFFF;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 12px;
    text-transform: uppercase;
}

.footer-text {
    text-align: center;
    margin-top: 18px;
    font-size: 11px;
    color: #53565A;
    line-height: 1.5;
}

.footer-text a {
    color: #002D72;
    text-decoration: none;
    font-weight: 500;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* ========== FOOTER ========== */
footer {
    background-color: #1A1A1A;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #E0E0E0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
    font-size: 12px;
    color: #53565A;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: #FFFFFF;
}

.footer-logo {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #53565A;
    margin-top: 20px;
}

.footer-logo p {
    font-size: 10px;
    color: #53565A;
    margin-top: 8px;
}

.footer-logo .logo-icon {
    font-size: 24px;
    margin-bottom: 6px;
}

.footer-tagline {
    font-size: 10px;
    color: #C8102E;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ========== NOTIFICATIONS ========== */
.notification {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.notification-error {
    background-color: #FFF3F3;
    color: #C8102E;
    border-left: 4px solid #C8102E;
}

.notification-success {
    background-color: #F0F7F4;
    color: #006B57;
    border-left: 4px solid #006B57;
}

.form-group.focused input {
    box-shadow: 0 0 0 3px rgba(0, 45, 114, 0.1);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 600px) {
    header {
        padding: 12px 20px;
    }

    .logo-icon {
        font-size: 28px;
    }

    .logo-text {
        font-size: 20px;
    }

    main {
        padding: 15px 10px;
    }

    .login-container {
        padding: 25px 25px;
        max-width: 100%;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .login-header p {
        font-size: 12px;
    }

    .tagline {
        font-size: 10px;
    }

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

    .button-group {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    footer {
        padding: 15px 20px;
    }
}

@media (max-height: 700px) {
    .login-container {
        padding: 20px 30px;
    }

    .login-header {
        margin-bottom: 15px;
    }

    .login-header h1 {
        font-size: 20px;
        margin-bottom: 4px;
    }

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

    .button-group {
        margin-top: 15px;
    }

    .footer-text {
        margin-top: 12px;
    }

    .coming-soon-badge {
        margin-top: 8px;
        padding: 4px 12px;
    }
}
