@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #2d3e5e;
    --secondary-color: #fcfcfc;
    --background-start: #354e7a;
    --background-end: #1e2c45;
    --text-color: #333;
    --border-color: #ced4da;
    --accent-color: #007bff;
    --button-hover: #1e2a41;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 80%),
        url('https://www.netsons.com/images/editorial/loginbg.png');
    background-size: 150% 100%, cover;
    background-position: center right, center;
    background-attachment: fixed;
    background-color: var(--background-end);
    color: white;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-container {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    margin: 20px;
}

.login-header {
    background: var(--primary-color);
    padding: 30px;
    text-align: center;
}

.logo {
    width: 200px;
}

.login-body {
    padding: 40px;
    color: var(--text-color);
}

.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-container {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.input-icon {
    width: 45px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
    border-right: 1px solid var(--border-color);
}

.input-field {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}

.input-field:focus {
    background: #fff;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #adb5bd;
    z-index: 10;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: #666;
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 14px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 15px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
}

.forgot-password {
    text-align: center;
    display: block;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: 10px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.footer-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.footer-links {
    text-align: center;
    font-size: 13px;
}

.footer-links nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-links span {
    color: rgba(255, 255, 255, 0.3);
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    color: white;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 1;
}

.copyright {
    width: 100%;
    max-width: 900px;
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0 10px;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .page-wrapper {
        padding: 20px 10px;
    }
    .login-container {
        margin: 10px 0;
        width: 100%;
    }
    .login-body {
        padding: 30px 20px;
    }
    .footer-links nav {
        flex-direction: column;
        gap: 8px;
    }
    .footer-links span {
        display: none;
    }
}

/* --- Loading & Dash Components --- */
.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    height: 100%;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Success/Dashboard Placeholders */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.dash-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.dash-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    display: block;
}

.dash-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: #333;
}

