:root {
    --primary-color: #EF7B00;
    --primary-hover: #cc6900;
    --dark-blue: #001f4d;
    --error-color: rgb(182, 3, 3);
    --success-color: green;
    --white: #ffffff;
    --text-dark: #303030;
     /*#01234f, #003060*/
}

body,
html {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--dark-blue);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 31, 77, 0.4);
    z-index: -1;
}

.auth-container {
    display: flex;
    min-height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.auth-left {
    background: linear-gradient(135deg, #01234f, #003060);
    color: var(--white);
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.auth-left img {
    max-width: 150px;
    margin-bottom: 20px;
}

.auth-left p {
    font-size: 14px;
    opacity: 0.8;
}

.auth-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
    background-color: var(--white);
}

.auth-right h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #222;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(239, 123, 0, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-col {
    flex: 1;
}

.form-check-group {
    margin-top: 20px;
}

.form-check {
    display: block;
    margin-bottom: 20px;
    font-size: 12px;
    color: #555;
    padding-left: 0;
}

.form-check input[type="checkbox"] {
    margin-bottom: 0.2rem;
    vertical-align: middle;
}

.form-check label {
    display: inline-block;
    cursor: pointer;
    font-size: 12px;
}

.form-check label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-check label a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.15s;
}

.auth-button:hover {
    background-color: var(--primary-hover);
}

.auth-button:active {
    transform: scale(0.98);
}

.extra-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 14px;
    margin-top: 15px;
}

.extra-links a {
    color: var(--text-dark);
    text-decoration: none;
    margin-left: 5px;
    margin-right: 5px;
    transition: color 0.3s;
}

.extra-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.required {
    color: var(--error-color);
    margin-left: 4px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.form-error-message {
  background-color: #ffe6e6;
  color: #d93025;
  padding: 10px 15px;
  border: 1px solid #d93025;
  border-radius: 5px;
  font-size: 14px;
}

.input-error {
  color: #d93025;
  font-size: 13px;
  margin-top: 5px;
  display: none !important;
  padding-left: 10px;
}

input.error-input {
  border: 1px solid #d93025;
}


@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        width: 90%;
    }

    .auth-left,
    .auth-right {
        flex: none;
        width: 100%;
        padding: 30px;
    }

    .auth-left {
        border-bottom: 1px solid #ccc;
    }
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

.toast.success {
  background-color: var(--success-color);
}

.toast.error {
  background-color: var(--error-color);
}
