/*marco*/
.page-template-page-login label{margin-bottom:0;}

.page-template-page-login .nms-login-form-group input{margin: 0 0 10px 0;}

.nms-login-options {
display: block;}



.nms-login-forgot{margin-bottom:10px;}



/*fine marco*/


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

.nms-login-container {
    width: 100%;
    max-width: 400px;
}

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

.nms-login-logo-img {
    max-width: 70%;
}

.nms-login-logo-icon {
    width: 64px;
    height: 64px;
    background: #3f51b5;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    margin: 0 auto 16px;
}

.nms-login-logo-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E2A38;
}

.nms-login-logo-subtitle {
    margin: 4px 0 0;
    color: #666;
    font-size: 0.9rem;
}

.nms-login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 32px;
}

.nms-login-title {
    text-align: center;
    margin: 0 0 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

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

.nms-login-form-group,
.nms-login-options {
  /*  display: flex;*/
    flex-direction: column;
    gap: 6px;
}

.nms-login-options {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.nms-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #333;
}

.nms-login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3f51b5;
}

.nms-login-forgot a {
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
}

.nms-login-forgot a:hover {
    color: #3f51b5;
    text-decoration: underline;
}

.nms-login-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
}

.nms-login-input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.nms-login-input:focus {
    outline: none;
    border-color: #3f51b5;
    box-shadow: 0 0 0 3px rgba(63, 81, 181, 0.15);
}

.nms-login-input.error {
    border-color: #e91e63;
}

.nms-login-btn {
    margin-top: 8px;
    padding: 14px;
    background: #3f51b5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.nms-login-btn:hover {
    background: #5c6bc0;
}

.nms-login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nms-login-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    display: none;
}

.nms-login-error.show {
    display: block;
}

.nms-login-loading {
    display: none;
    text-align: center;
    margin-top: 16px;
}

.nms-login-loading.active {
    display: block;
}

.nms-login-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #3f51b5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.nms-login-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: #666;
}

.nms-login-footer a {
    color: #3f51b5;
    text-decoration: none;
}

.nms-login-footer a:hover {
    text-decoration: underline;
}

.nms-login-lost-password {
    text-align: center;
    margin-top: 16px;
}

.nms-login-lost-password a {
    color: #666;
    font-size: 0.875rem;
    text-decoration: none;
}

.nms-login-lost-password a:hover {
    color: #3f51b5;
}

.nms-login-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    text-align: center;
}

@media (max-width: 480px) {
    .nms-login-card {
        padding: 24px 16px;
    }
}