body {
    background-color: #121212;
    /* background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    height: 100vh; */
    color: #ffffff;
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    min-height: 100vh;
    /*border:5px solid #4CAF50;
    border-radius: 15px;*/
    border: 0.3125rem solid #4CAF50;
    border-radius: 0.9375rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Postavlja ih ispod drugih elemenata */
}

#kastmporuka {
    opacity: 0;
    transition: opacity 0.365s ease-in;
}
#kastmporuka.visible {
    opacity: 1;
}

header {
    width: 50%;
    max-width: 60rem;/* nadodano */
    /*padding: 20px;*/
    padding: 1.25rem;
    background-color: rgb(31, 31, 31, 0.785);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
    /*border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;*/
    border-bottom-left-radius: 1.5625rem;
    border-bottom-right-radius: 1.5625rem;
}

header h1 {
    margin: 0;
    /*font-size: 28px;*/
    font-size: 1.75rem;
    font-weight: 600;
}

main {
    width: 90%;
    /*max-width: 400px;
    padding: 30px;*/
    max-width: 27rem;
    padding: 1.875rem;
    background-color: rgba(30, 30, 30, 0.5);
    /*border-radius: 25px;*/
    border-radius: 1.5625rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    /*margin: 20px auto;*/
    margin: 1.25rem auto;
    text-align: center;
    transition: all 0.25s ease-in-out;
}

main:hover {
    transform: scale(1.01);
    transition: all 0.25s ease-in-out;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form h2 {
    /*font-size: 24px;
    margin-bottom: 20px;*/
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

label {
    /*font-size: 14px;*/
    font-size: 0.875rem;
    color: #cccccc;
    margin-bottom: 5px;
}

input {
    /*padding: 10px;*/
    padding: 0.625rem;
    border: 1px solid #333333;
    /*border-radius: 10px;*/
    border-radius: 0.625rem;
    background-color: #252525;
    color: #ffffff;
    /*font-size: 16px;*/
    font-size: 1rem;
    outline: none;
    transition: 0.252s;
}

input::placeholder {
    color: #aaaaaa;
}

input:focus {
    transition: 0.252s;
    scale: 1.035;
    border-color: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

button {
    background-color: #333333;
    color: #ffffff;
    border: none;
    /*padding: 12px 20px;
    font-size: 16px;
    border-radius: 50px;*/
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    border-radius: 3.125rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s, transform 0.2s;
    transition: 0.195s;
}

button:hover {
    transition: 0.195s;
    background-color: #444444;
    transform: scale(1.05);
}

button:active {
    transition: 0.408s;
    transform: scale(1.2);
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    opacity: 0.7;
}
  

.toggle {
    font-size: 14px;
    color: #cccccc;
}

.toggle a {
    color: #4CAF50;
    text-decoration: none;
}

.toggle a:hover {
    text-decoration: underline;
}

footer {
    width: 50%;
    /*padding: 10px;
    border-top-left-radius: 25px;
    border-top-right-radius: 25px;*/
    padding: 0.625rem;
    border-top-left-radius: 1.5625rem;
    border-top-right-radius: 1.5625rem;
    background-color: #1f1f1f;
    text-align: center;
    margin-top: auto;
}

footer p {
    /*font-size: 14px;*/
    font-size: 0.875rem;
    color: #777777;
    margin: 0;
}
