/* Ultra Modern Enterprise Theme for Kyrenia University - Turquoise/Cyan Theme */
:root {
    --nec-primary: #0d9488;
    --nec-accent: #14b8a6;
    --nec-dark: #0f766e;
    --nec-success: #00c853;
    --bg-gradient-start: #0f766e;
    --bg-gradient-end: #14b8a6;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --border: #e0e0e0;
    --white: #ffffff;
}

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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-dark);
    line-height: 1.5;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.logo-container img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--nec-primary);
    letter-spacing: -0.02em;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 1.25rem;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    padding: 3rem 2.5rem;
    max-width: 420px;
    width: 100%;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    text-align: center;
}

.subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    text-align: center;
    display: none;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group,
.pure-control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
input.edge {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--white);
    font-family: inherit;
    width: 100%;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input.edge:focus {
    outline: none;
    border-color: var(--nec-accent);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
    transform: translateY(-1px);
}

input[type="text"]:disabled,
input[type="password"]:disabled,
input.edge:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Buttons */
button,
.btn,
.pure-button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    width: 100%;
}

button[type="submit"],
.btn-primary,
.pure-button-red {
    background: linear-gradient(135deg, var(--nec-primary) 0%, var(--nec-accent) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

button[type="submit"]:hover,
.btn-primary:hover,
.pure-button-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Error Messages - Prominent */
.message-box {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

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

.message-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.message-box.error {
    background: linear-gradient(135deg, #fff5f7 0%, #ffe5e9 100%);
    border-left-color: #dc2626;
    color: #991b1b;
}

.message-box.error h3 {
    color: #dc2626;
}

.message-box.warning {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-left-color: #f59e0b;
    color: #92400e;
}

.message-box.warning h3 {
    color: #d97706;
}

.message-box.success {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-left-color: #16a34a;
    color: #166534;
}

.message-box.info {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left-color: #2563eb;
    color: #1e40af;
}

/* Help Box */
.help-box,
.pure-form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.625rem;
    border-left: 3px solid var(--nec-accent);
}

.help-box strong,
.pure-form-message strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.help-box p,
.pure-form-message p {
    color: var(--text-light);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* Hide verbose messages */
h1 + p {
    display: none !important;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(20, 184, 166, 0.1);
    padding: 1.25rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Checkbox Styles */
.pure-checkbox,
.pure-controls {
    margin-top: 0.5rem;
}

.pure-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    accent-color: var(--nec-primary);
}

.pure-checkbox small {
    color: var(--text-light);
    font-size: 0.8125rem;
}

/* Form Alignment */
.pure-form-aligned .pure-control-group label {
    text-align: left;
    width: 100%;
}

.center-form,
.login-form-start {
    width: 100%;
}

.login-form-submit,
.center {
    margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .content-wrapper {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .header-container {
        padding: 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
}

/* Links */
a {
    color: var(--nec-accent);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

a:hover {
    color: var(--nec-primary);
}

/* Focus ring */
*:focus-visible {
    outline: 2px solid var(--nec-accent);
    outline-offset: 2px;
}

.pure-form-aligned .pure-controls:empty {
    display: none;
}

