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

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-focus: #2e7d32;
    --text: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --accent: #2e7d32;
    --accent-hover: #1b5e20;
    --accent-light: #e8f5e9;
    --error: #dc2626;
    --error-bg: #fef2f2;
    --error-border: #fca5a5;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1100px;
    width: 100%;
    background: var(--surface);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.login-promo {
    background-image: url('https://natanplast.pl/cms/assets/upload/images/Zdjecie%20NATAN%20PLAST%20N40%20PRO.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: white;
    position: relative;
}

.login-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.login-promo .promo-content {
    position: relative;
    z-index: 2;
}

.promo-content {
    text-align: center;
}

.login-box {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--surface);
}

.login-logo {
    margin-bottom: 40px;
    text-align: center;
}

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

.login-box h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-box > p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

.login-error {
    background: var(--error-bg);
    color: var(--error);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 28px;
    border: 1px solid var(--error-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.login-error i {
    margin-top: 2px;
    flex-shrink: 0;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.input-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.2px;
}

.input-group input {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-bottom: 2px solid var(--border);
    border-radius: 0;
    font-size: 15px;
    color: var(--text);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.input-group input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.input-group input:focus {
    outline: none;
    border-bottom-color: var(--accent);
    padding-bottom: 13px;
    border-bottom-width: 3px;
}

.input-group:has(input:focus) .input-underline {
    transform: scaleX(1);
}

.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 40px;
    border-bottom: 2px solid var(--border);
}

.password-wrapper input:focus {
    border-bottom-color: var(--accent);
    border-bottom-width: 3px;
    padding-bottom: 13px;
}

.password-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.2s;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.login-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    box-shadow: 0 4px 6px -1px rgba(46, 125, 50, 0.2), 0 2px 4px -1px rgba(46, 125, 50, 0.1);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.login-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-submit:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 12px -2px rgba(46, 125, 50, 0.3), 0 4px 6px -1px rgba(46, 125, 50, 0.2);
    transform: translateY(-2px);
}

.login-submit:hover::before {
    width: 300px;
    height: 300px;
}

.login-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(46, 125, 50, 0.2);
}

.login-info {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.login-info p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        border-radius: 12px;
        max-width: 100%;
    }
    
    .login-promo {
        display: none;
    }
    
    .login-box {
        padding: 40px 28px;
    }
    
    .login-box h2 {
        font-size: 24px;
    }
}

