/* Authentication Pages Styles - Technopolis Theme */

.auth-container {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--grayBg) 0%, var(--lightRose) 100%);
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.auth-card.login {
    max-width: 450px;
}

.auth-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--brown) 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.auth-header-content {
    position: relative;
    z-index: 1;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.auth-body {
    padding: 40px 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--textColor);
    font-size: 14px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--lightGray);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--grayBg);
    font-family: inherit;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--red);
    background: white;
    box-shadow: 0 0 0 3px rgba(208, 14, 70, 0.1);
}

.form-input.error, .form-select.error, .form-textarea.error {
    border-color: var(--red);
}

.form-error {
    color: var(--red);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.remember-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--red);
}

.remember-label {
    color: var(--textColor);
    font-size: 14px;
    cursor: pointer;
}

.role-group {
    background: var(--lightRose);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(208, 14, 70, 0.2);
    margin-bottom: 25px;
}

.role-group-title {
    font-weight: 600;
    color: var(--red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.role-option {
    position: relative;
}

.role-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.role-option label {
    display: block;
    padding: 15px 20px;
    background: white;
    border: 2px solid var(--lightGray);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.role-option input[type="radio"]:checked + label {
    border-color: var(--red);
    background: var(--lightRose);
    color: var(--red);
}

.role-option:hover label {
    border-color: var(--red);
}

.company-group {
    background: var(--grayBg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--lightGray);
    margin-bottom: 25px;
    display: none;
}

.company-group.show {
    display: block;
}

.company-group-title {
    font-weight: 600;
    color: var(--textColor);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-btn {
    width: 100%;
    padding: 15px;
    background: var(--red);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    background: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(208, 14, 70, 0.3);
}

.auth-footer {
    text-align: center;
    padding: 20px 30px;
    border-top: 1px solid var(--lightGray);
    background: var(--grayBg);
}

.auth-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--brown);
}

.info-box {
    background: var(--lightRose);
    border: 1px solid rgba(208, 14, 70, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.info-box-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-icon {
    color: var(--red);
    font-size: 20px;
    margin-top: 2px;
}

.info-text {
    color: var(--textColor);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.test-accounts {
    margin-top: 30px;
    padding: 20px;
    background: var(--lightRose);
    border-radius: 12px;
    border: 1px solid rgba(208, 14, 70, 0.2);
}

.test-accounts-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.test-account {
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid rgba(208, 14, 70, 0.1);
}

.test-account:last-child {
    margin-bottom: 0;
}

.test-account-role {
    font-weight: 600;
    color: var(--textColor);
    font-size: 14px;
    margin-bottom: 4px;
}

.test-account-credentials {
    font-size: 13px;
    color: var(--textGray);
    font-family: monospace;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .role-options {
        grid-template-columns: 1fr;
    }
    
    .auth-container {
        padding: 20px 10px;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
}
