/* ISMP Canada NSIR Login Page Styles */
:root {
    --ismp-blue: #2E6DA4;
    --ismp-blue-dark: #1E4A73;
    --ismp-blue-light: #4A8BC2;
    --ismp-red: #D32F2F;
    --ismp-red-light: #FFEBEE;
    --white: #FFFFFF;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;
    --success-green: #4CAF50;
    --warning-orange: #FF9800;
    --error-red: #F44336;
    --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-strong: 0 8px 16px rgba(0,0,0,0.15);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    min-height: 100vh;
}

.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.login-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--ismp-blue);
    box-shadow: var(--shadow-light);
}

.logo-container {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.ismp-logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.logo-image {
    height: 80px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.system-title h1 {
    font-size: 1.75rem;
    color: var(--gray-800);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.system-title .subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
}

/* Main Content */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin-right: 2rem;
}

.card-header {
    background: linear-gradient(135deg, var(--ismp-blue) 0%, var(--ismp-blue-dark) 100%);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-header p {
    font-size: 1rem;
    opacity: 0.9;
}

.card-body {
    padding: 2rem;
}

.login-info {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: 8px;
    border-left: 4px solid var(--ismp-blue);
}

.info-icon {
    color: var(--ismp-blue);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.info-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.info-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

.alert-error {
    background: #FFEBEE;
    color: var(--error-red);
    border: 1px solid #FFCDD2;
}

.alert-success {
    background: #E8F5E8;
    color: var(--success-green);
    border: 1px solid #C8E6C9;
}

/* Login Actions */
.login-actions {
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--ismp-blue) 0%, var(--ismp-blue-dark) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--ismp-blue-dark) 0%, var(--ismp-blue) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
    text-decoration: none;
    color: var(--white);
}

.btn-primary i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--white);
    color: var(--ismp-blue);
    text-decoration: none;
    border: 2px solid var(--ismp-blue);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-secondary:hover {
    background: var(--ismp-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    text-decoration: none;
}

.btn-secondary i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--gray-500);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-300);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
}

.register-note {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--gray-50);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
}

.register-note i {
    margin-right: 0.5rem;
    margin-top: 0.15rem;
    color: var(--ismp-blue);
    flex-shrink: 0;
}

/* Help Links */
.login-help {
    border-top: 1px solid var(--gray-200);
    padding-top: 1.5rem;
}

.help-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.help-link {
    display: flex;
    align-items: center;
    color: var(--ismp-blue);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.help-link:hover {
    color: var(--ismp-blue-dark);
    text-decoration: underline;
}

.help-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Partner Information */
.partner-info {
    flex: 1;
    max-width: 400px;
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-medium);
    height: fit-content;
}

.partner-info h3 {
    font-size: 1.5rem;
    color: var(--ismp-blue);
    margin-bottom: 1rem;
    font-weight: 600;
}

.partner-info p {
    font-size: 1rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.partnership-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--gray-700);
}

.benefit i {
    color: var(--ismp-blue);
    margin-right: 0.75rem;
    font-size: 1.1rem;
    width: 1.5rem;
}

/* Footer */
.login-footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 1.5rem 2rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .ismp-logo {
        margin-right: 0;
        margin-bottom: 1rem;
        justify-content: center;
    }

    .system-title h1 {
        font-size: 1.5rem;
    }

    .login-main {
        flex-direction: column;
        padding: 1rem;
    }

    .login-card {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .partner-info {
        max-width: 100%;
    }

    .help-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-header {
        padding: 1rem;
    }

    .ismp-main {
        font-size: 2rem;
    }

    .system-title h1 {
        font-size: 1.25rem;
    }

    .card-header,
    .card-body,
    .partner-info {
        padding: 1.5rem;
    }
}
